Retrieves the specified method that matches the specified binding constraints for the type of the current instance.
Namespace: Microsoft.VisualStudio.Data.Framework
Assembly: Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)
Syntax
'宣言
Private Function GetMethod ( _
name As String, _
bindingAttr As BindingFlags _
) As MethodInfo Implements IReflect.GetMethod
'使用
Dim instance As DataViewBrowseObject
Dim name As String
Dim bindingAttr As BindingFlags
Dim returnValue As MethodInfo
returnValue = CType(instance, IReflect).GetMethod(name, _
bindingAttr)
MethodInfo IReflect.GetMethod(
string name,
BindingFlags bindingAttr
)
private:
virtual MethodInfo^ GetMethod(
String^ name,
BindingFlags bindingAttr
) sealed = IReflect::GetMethod
JScript does not support explicit interface implementations.
Parameters
name
Type: System.StringThe name of the method to get.
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: System.Reflection.MethodInfo
A MethodInfo object representing the method that matches the specified binding constraints for the type of the current instance, if found; otherwise, a null reference (Nothing in Visual Basic).
Implements
IReflect.GetMethod(String, 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.