NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

EventInfo.GetRemoveMethod ()

Retrieves the MethodInfo object for "removing" a method of the event represented by this instance with default properties.

[Visual Basic]
Overloads Public Function GetRemoveMethod() As MethodInfo
[C#]
public MethodInfo GetRemoveMethod();
[C++]
public: MethodInfo* GetRemoveMethod();
[JScript]
public function GetRemoveMethod() : MethodInfo;

Return Value

Retrieves a MethodInfo object that you call to unsubscribe to an event.

Remarks

The GetRemoveMethod method will return the unsubscribed method. The "remove" method is used to add an even-handler delegate to the invocation list of an event source.

Example

Typically, the method has the following signature:

public void AddOn<EventName>(<EventHandlerType>hander)

See Also

EventInfo Class | EventInfo Members | System.Reflection Namespace | EventInfo.GetRemoveMethod Overload List | MethodInfo