disconnect()

MulticastDelegate< ReturnType(ArgumentTypes…)>::disconnect(Callback) method

Removes the specified delegate from the delegate collection.

MulticastDelegate & System::MulticastDelegate<ReturnType(ArgumentTypes...)>::disconnect(Callback callback)

Arguments

ParameterTypeDescription
callbackCallbackThe delegate to remove from the collection

Return Value

A reference to the self

MulticastDelegate< ReturnType(ArgumentTypes…)>::disconnect(MemberType ClassType::*, ClassType *) method

Removes the specified non-static method of the specified object from the delegate collection.

template<class MemberType,class ClassType> MulticastDelegate & System::MulticastDelegate<ReturnType(ArgumentTypes...)>::disconnect(MemberType ClassType::*member, ClassType *obj)

Template parameters

ParameterDescription
MemberTypeThe type of the non-static method that is to be removed from the delegate collection
ClassTypeThe type of the object method of which is to be removed from the delegate collection

Arguments

ParameterTypeDescription
memberMemberType ClassType::*A pointer to the non-static method of the specified object
objClassType *A pointer to an object member method of which is to be removed from the delegate collection

Return Value

A reference to the self

MulticastDelegate< ReturnType(ArgumentTypes…)>::disconnect(MemberType ClassType::*, const SharedPtr<ClassType>&) method

Removes the specified non-static method of the specified object from the delegate collection.

template<class MemberType,class ClassType> MulticastDelegate & System::MulticastDelegate<ReturnType(ArgumentTypes...)>::disconnect(MemberType ClassType::*member, const SharedPtr<ClassType> &obj)

Template parameters

ParameterDescription
MemberTypeThe type of the non-static method that is to be removed from the delegate collection
ClassTypeThe type of the object method of which is to be removed from the delegate collection

Arguments

ParameterTypeDescription
memberMemberType ClassType::*A pointer to the non-static method of the specified object
objconst SharedPtr<ClassType>&A shared pointer to an object member method of which is to be removed from the delegate collection

Return Value

A reference to the self

MulticastDelegate< ReturnType(ArgumentTypes…)>::disconnect(MulticastDelegate&) method

Removes the specified MulticastDelegate object from the delegate collection.

MulticastDelegate & System::MulticastDelegate<ReturnType(ArgumentTypes...)>::disconnect(MulticastDelegate &other)

Arguments

ParameterTypeDescription
otherMulticastDelegate&An instance of the MulticastDelegate class to remove from the delegate collection

Return Value

A reference to the self

See Also