Uredi

Deli z drugimi prek


IRemoteTypeContract.GetMethod Method

Definition

Returns an IRemoteMethodInfoContract that provides access to a specified method of the current IRemoteTypeContract.

public:
 System::AddIn::Contract::Automation::IRemoteMethodInfoContract ^ GetMethod(System::String ^ name, System::Reflection::BindingFlags bindingFlags, System::AddIn::Contract::Collections::IArrayContract<System::AddIn::Contract::Automation::IRemoteTypeContract ^> ^ remoteTypes);
public System.AddIn.Contract.Automation.IRemoteMethodInfoContract GetMethod (string name, System.Reflection.BindingFlags bindingFlags, System.AddIn.Contract.Collections.IArrayContract<System.AddIn.Contract.Automation.IRemoteTypeContract> remoteTypes);
abstract member GetMethod : string * System.Reflection.BindingFlags * System.AddIn.Contract.Collections.IArrayContract<System.AddIn.Contract.Automation.IRemoteTypeContract> -> System.AddIn.Contract.Automation.IRemoteMethodInfoContract
Public Function GetMethod (name As String, bindingFlags As BindingFlags, remoteTypes As IArrayContract(Of IRemoteTypeContract)) As IRemoteMethodInfoContract

Parameters

name
String

The name of a method of the current IRemoteTypeContract.

bindingFlags
BindingFlags

A bitwise combination of the BindingFlags values that specifies how to search for the method.

remoteTypes
IArrayContract<IRemoteTypeContract>

An IArrayContract<C> of IRemoteTypeContract objects that represent the number, order, and type of the parameters for the method to get.

Returns

An IRemoteMethodInfoContract that provides access to the specified method, if found; otherwise, null.

Applies to