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

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

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

Return Value

Returns the event subscribe method.

Remarks

The GetAddMethod Initializes and adds the event subscribe method. 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