Retrieves all the methods defined for the type of the current instance, using the specified binding constraints.
Namespace: Microsoft.VisualStudio.Data.Framework
Assembly: Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)
Syntax
'宣言
Private Function GetMethods ( _
bindingAttr As BindingFlags _
) As MethodInfo() Implements IReflect.GetMethods
'使用
Dim instance As DataViewBrowseObject
Dim bindingAttr As BindingFlags
Dim returnValue As MethodInfo()
returnValue = CType(instance, IReflect).GetMethods(bindingAttr)
MethodInfo[] IReflect.GetMethods(
BindingFlags bindingAttr
)
private:
virtual array<MethodInfo^>^ GetMethods(
BindingFlags bindingAttr
) sealed = IReflect::GetMethods
JScript does not support explicit interface implementations.
Parameters
bindingAttr
Type: System.Reflection.BindingFlagsA bitmask made up of one or more BindingFlags that specify how the search is conducted, or zero to return an empty array.
Return Value
Type: []
An array of MethodInfo objects representing all the methods defined for the type of the current instance that match the specified binding constraints. If no methods are defined for the type of the current instance, or if none of the defined methods match the binding constraints, returns an empty array of type MethodInfo.
Implements
IReflect.GetMethods(BindingFlags)
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.