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.GetEvents (BindingFlags)

Returns the public and non-public events that are declared by this type.

[Visual Basic]
Overloads Overrides Public Function GetEvents( _
   ByVal bindingAttr As BindingFlags _
) As EventInfo ()
[C#]
public override EventInfo[] GetEvents(
   BindingFlags bindingAttr
);
[C++]
public: override EventInfo* GetEvents(
   BindingFlags bindingAttr
) [];
[JScript]
public override function GetEvents(
   bindingAttr : BindingFlags
) : EventInfo[];

Parameters

bindingAttr
This must be a bit flag from BindingFlags: InvokeMethod, NonPublic, etc.

Return Value

Returns an array of EventInfo objects representing the public and non-public events declared or inherited by this type. An empty array is returned if there are no events, as specified.

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.

Requirements

NGWS Runtime Security:

ReflectionPermission TypeInformation required for non-public members

See Also

TypeBuilder Class | TypeBuilder Members | System.Reflection.Emit Namespace | TypeBuilder.GetEvents Overload List