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

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

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

Parameters

nonPublic
A Boolean value.

Return Value

Returns the event subscribe method as a Boolean.

Remarks

Read-only.

The GetAddMethod initializes and adds the event subscribe method as a Boolean. The "add" method is used to add an even-handler delegate to the invocation list of an event source.

Example

Typically, the method has hte following signature:

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

See Also

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