DataViewBrowseObject.IReflect.GetMethod Method (String, BindingFlags)
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
'Declaration
Private Function GetMethod ( _
name As String, _
bindingAttr As BindingFlags _
) As MethodInfo Implements IReflect.GetMethod
MethodInfo IReflect.GetMethod(
string name,
BindingFlags bindingAttr
)
private:
virtual MethodInfo^ GetMethod(
String^ name,
BindingFlags bindingAttr
) sealed = IReflect::GetMethod
private abstract GetMethod :
name:string *
bindingAttr:BindingFlags -> MethodInfo
private override GetMethod :
name:string *
bindingAttr:BindingFlags -> MethodInfo
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, nulla null reference (Nothing in Visual Basic).
Implements
IReflect.GetMethod(String, BindingFlags)
.NET Framework Security
- 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.