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

When implemented by a derived class, searches for the methods defined for the current Type, using the specified binding constraints.

[Visual Basic]
Overloads MustOverride Public Function GetMethods( _
   ByVal bindingAttr As BindingFlags _
) As MethodInfo ()
[C#]
public abstract MethodInfo[] GetMethods(
   BindingFlags bindingAttr
);
[C++]
public: virtual MethodInfo* GetMethods(
   BindingFlags bindingAttr
) [] = 0;
[JScript]
public abstract function GetMethods(
   bindingAttr : BindingFlags
) : MethodInfo[];

Parameters

bindingAttr
A bit mask comprised of one or more BindingFlags that specify how the search is conducted.

-or-

zero, to conduct a case-sensitive search for public methods.

Return Value

An array of MethodInfo objects representing all methods defined for the current Type that match the specified binding constraints.

-or-

An empty array of type MethodInfo, if no methods are defined for the current Type, or if none of the defined methods match the binding constraints.

Exceptions

Exception Type Condition
SecurityException The BindingFlags value Public is used but the caller does not have ReflectionPermission to reflect non-public members outside the current assembly.

Remarks

Abstract. This method must be implemented by a derived class.

The following BindingFlags filter flags can be used to define which methods should be included in the search:

The following BindingFlags modifier flags can be used to change how the search works:

See BindingFlags for more information.

See Also

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