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!

TypeBuilder.GetEvent

Returns the event with the specified name.

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

Parameters

name
The name of the event to get.
bindingAttr
This invocation attribute. This must be a bit flag from BindingFlags: InvokeMethod, NonPublic, etc.

Return Value

Returns an EventInfo object representing the event declared or inherited by this type with the specified name. If there are no matches, then an empty array is returned.

Exceptions

Exception Type Condition
NotSupportedException This method is not implemented.

Remarks

This method is not currently supported. As a workaround, retrieve the type using Type.GetType or Assembly.GetType and use reflection on the retrieved type.

See Also

TypeBuilder Class | TypeBuilder Members | System.Reflection.Emit Namespace