
Typeof.GetMethod("MethodA", BindingFlags.Public ||| BindingFlags.Instance, null, CallingConventions.Any,, null) GetMethod("MethodA", BindingFlags.Public ||| BindingFlags.Instance, null, CallingConventions.Any,, null) Member _.MethodA(i: int, o: int outref) = o. Method that takes an outref parameter: MInfo = Program::typeid->GetMethod("MethodA",īindingFlags::Public | BindingFlags::Instance,Ĭonsole::WriteLine("Found method: ", mInfo) Method that takes a managed reference paramter. The Visual C# 2005 example requires the /unsafe compiler option. Override this.GetMethod : string * * * * Type * -> Public Function GetMethod (name As String, bindingAttr As BindingFlags, binder As Binder, callConvention As CallingConventions, types As Type(), modifiers As ParameterModifier()) As MethodInfo Parameters Virtual System::Reflection::MethodInfo ^ GetMethod(System::String ^ name, System::Reflection::BindingFlags bindingAttr, System::Reflection::Binder ^ binder, System::Reflection::CallingConventions callConvention, cli::array ^ types, cli::array ^ modifiers) public ? GetMethod (string name, bindingAttr, ? binder, callConvention, Type types, ? modifiers) public GetMethod (string name, bindingAttr, binder, callConvention, Type types, modifiers) member this.GetMethod : string * * * * Type * -> abstract member GetMethod : string * * * * Type * -> System::Reflection::MethodInfo ^ GetMethod(System::String ^ name, System::Reflection::BindingFlags bindingAttr, System::Reflection::Binder ^ binder, System::Reflection::CallingConventions callConvention, cli::array ^ types, cli::array ^ modifiers) public: Searches for the specified method whose parameters match the specified argument types and modifiers, using the specified binding constraints and the specified calling convention. System::Reflection::MethodInfo ^ GetMethod(System::String ^ name, int genericParameterCount, System::Reflection::BindingFlags bindingAttr, System::Reflection::Binder ^ binder, System::Reflection::CallingConventions callConvention, cli::array ^ types, cli::array ^ modifiers) public ? GetMethod (string name, int genericParameterCount, bindingAttr, ? binder, callConvention, Type types, ? modifiers) public GetMethod (string name, int genericParameterCount, bindingAttr, binder, callConvention, Type types, modifiers) member this.GetMethod : string * int * * * * Type * -> Public Function GetMethod (name As String, genericParameterCount As Integer, bindingAttr As BindingFlags, binder As Binder, callConvention As CallingConventions, types As Type(), modifiers As ParameterModifier()) As MethodInfo Parameters

Searches for the specified method whose parameters match the specified generic parameter count, argument types and modifiers, using the specified binding constraints and the specified calling convention.

Searches for the specified public method whose parameters match the specified argument types and modifiers. GetMethod(String, Type, ParameterModifier)

Searches for the public method with the specified name. Searches for the specified method, using the specified binding constraints. Searches for the specified public method whose parameters match the specified argument types. Searches for the specified method whose parameters match the specified argument types, using the specified binding constraints. Searches for the specified public method whose parameters match the specified generic parameter count and argument types. Searches for the specified public method whose parameters match the specified generic parameter count, argument types and modifiers. GetMethod(String, Int32, Type, ParameterModifier) Searches for the specified method whose parameters match the specified argument types and modifiers, using the specified binding constraints. GetMethod(String, BindingFlags, Binder, Type, ParameterModifier) Searches for the specified method whose parameters match the specified generic parameter count, argument types and modifiers, using the specified binding constraints. GetMethod(String, Int32, BindingFlags, Binder, Type, ParameterModifier)

GetMethod(String, BindingFlags, Binder, CallingConventions, Type, ParameterModifier) In this article Overloads GetMethod(String, Int32, BindingFlags, Binder, CallingConventions, Type, ParameterModifier) Gets a specific method of the current Type.
