次の方法で共有


DataViewBrowseObject.IReflect.GetMethod Method

Definition

Overloads

IReflect.GetMethod(String, BindingFlags)

Retrieves the specified method that matches the specified binding constraints for the type of the current instance.

IReflect.GetMethod(String, BindingFlags, Binder, Type[], ParameterModifier[])

Retrieves the specified method whose parameters match the specified argument types and modifiers, using the specified binding constraints for the type of the current instance.

IReflect.GetMethod(String, BindingFlags)

Retrieves the specified method that matches the specified binding constraints for the type of the current instance.

 virtual System::Reflection::MethodInfo ^ System.Reflection.IReflect.GetMethod(System::String ^ name, System::Reflection::BindingFlags bindingAttr) = System::Reflection::IReflect::GetMethod;
System.Reflection.MethodInfo IReflect.GetMethod (string name, System.Reflection.BindingFlags bindingAttr);
abstract member System.Reflection.IReflect.GetMethod : string * System.Reflection.BindingFlags -> System.Reflection.MethodInfo
override this.System.Reflection.IReflect.GetMethod : string * System.Reflection.BindingFlags -> System.Reflection.MethodInfo
Function GetMethod (name As String, bindingAttr As BindingFlags) As MethodInfo Implements IReflect.GetMethod

Parameters

name
String

The name of the method to get.

bindingAttr
BindingFlags

A bitmask made up of one or more BindingFlags that specify how the search is conducted, or zero to return an empty array.

Returns

A MethodInfo object representing the method that matches the specified binding constraints for the type of the current instance, if found; otherwise, null.

Implements

Applies to

IReflect.GetMethod(String, BindingFlags, Binder, Type[], ParameterModifier[])

Retrieves the specified method whose parameters match the specified argument types and modifiers, using the specified binding constraints for the type of the current instance.

 virtual System::Reflection::MethodInfo ^ System.Reflection.IReflect.GetMethod(System::String ^ name, System::Reflection::BindingFlags bindingAttr, System::Reflection::Binder ^ binder, cli::array <Type ^> ^ types, cli::array <System::Reflection::ParameterModifier> ^ modifiers) = System::Reflection::IReflect::GetMethod;
System.Reflection.MethodInfo IReflect.GetMethod (string name, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, Type[] types, System.Reflection.ParameterModifier[] modifiers);
abstract member System.Reflection.IReflect.GetMethod : string * System.Reflection.BindingFlags * System.Reflection.Binder * Type[] * System.Reflection.ParameterModifier[] -> System.Reflection.MethodInfo
override this.System.Reflection.IReflect.GetMethod : string * System.Reflection.BindingFlags * System.Reflection.Binder * Type[] * System.Reflection.ParameterModifier[] -> System.Reflection.MethodInfo
Function GetMethod (name As String, bindingAttr As BindingFlags, binder As Binder, types As Type(), modifiers As ParameterModifier()) As MethodInfo Implements IReflect.GetMethod

Parameters

name
String

The name of the method to get.

bindingAttr
BindingFlags

A bitmask made up of one or more BindingFlags that specify how the search is conducted, or zero to return an empty array.

binder
Binder

A Binder object that defines a set of properties and enables binding, which can involve selection of an overloaded method, coercion of argument types, and invocation of a member through reflection; or null to use the DefaultBinder.

types
Type[]

An array of Type objects representing the number, order, and type of the parameters for the method to get, or an empty array of Type objects (as provided by the EmptyTypes field) to get a method that takes no parameters.

modifiers
ParameterModifier[]

An array of ParameterModifier objects representing the attributes associated with the corresponding element in the types array. To be used only when calling through COM interop, and only parameters that are passed by reference are handled. The default binder does not process this parameter.

Returns

A MethodInfo object representing the method that matches the specified binding constraints for the type of the current instance, if found; otherwise, null.

Implements

Applies to