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.GetMethods

Returns all the public and non-public methods declared or inherited by this type, as specified.

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

Parameters

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

Return Value

Returns an array of MethodInfo objects representing the public and non-public methods defined on this type if nonPublic is used; otherwise only the public methods are 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.

Requirements

NGWS Runtime Security:

ReflectionPermission TypeInformation required for non-public members

See Also

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