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 (Boolean)

Retrieves the MethodInfo object for "removing" a method of the event represented by this instance with the given parameter count and modifier bit map.

[Visual Basic]
Overloads MustOverride Public Function GetRemoveMethod( _
   ByVal nonPublic As Boolean _
) As MethodInfo
[C#]
public abstract MethodInfo GetRemoveMethod(
   bool nonPublic
);
[C++]
public: virtual MethodInfo* GetRemoveMethod(
   bool nonPublic
) = 0;
[JScript]
public abstract function GetRemoveMethod(
   nonPublic : Boolean
) : MethodInfo;

Parameters

nonPublic
A Boolean value.

Return Value

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

Remarks

Read-only.

The GetRemoveMethod method will return the unsubscribed method as a Boolean.

Example

Typically, the method has hte following signature:

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

See Also

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