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

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

[Visual Basic]
Overloads MustOverride Public Function GetRaiseMethod( _
   ByVal nonPublic As Boolean _
) As MethodInfo
[C#]
public abstract MethodInfo GetRaiseMethod(
   bool nonPublic
);
[C++]
public: virtual MethodInfo* GetRaiseMethod(
   bool nonPublic
) = 0;
[JScript]
public abstract function GetRaiseMethod(
   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 the following signature:public void AddOn<EventName>(<EventHandlerType>hander)

See Also

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