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!

Type.GetEvent (String)

Returns the EventInfo object representing the specified event.

[Visual Basic]
Overloads Public Function GetEvent( _
   ByVal name As String _
) As EventInfo
[C#]
public EventInfo GetEvent(
   string name
);
[C++]
public: EventInfo* GetEvent(
   String* name
);
[JScript]
public function GetEvent(
   name : String
) : EventInfo;

Parameters

name
The String containing the name of an event which is declared or inherited by the current Type.

Return Value

The EventInfo object representing the specified event which is declared or inherited by the current Type, if found; otherwise, a null reference (in Visual Basic Nothing).

Exceptions

Exception Type Condition
ArgumentNullException name is a null reference (Nothing).

Remarks

The search for name is case-sensitive.

See Also

Type Class | Type Members | System Namespace | Type.GetEvent Overload List