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[];
-or-
zero, to conduct a case-sensitive search for public methods.
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.
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. |
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.
Type Class | Type Members | System Namespace | Type.GetMethods Overload List