IRemoteTypeContract.GetMethod 方法

定义

返回一个 IRemoteMethodInfoContract,它提供对当前 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

参数

name
String

当前 IRemoteTypeContract 的方法的名称。

bindingFlags
BindingFlags

BindingFlags 值的一个按位组合,用于指定搜索方法的方式。

remoteTypes
IArrayContract<IRemoteTypeContract>

IArrayContract<C> 对象的 IRemoteTypeContract,它表示要获取的方法参数的数量、顺序和类型。

返回

如果找到指定方法,则为一个提供对该方法的访问的 IRemoteMethodInfoContract;否则为 null

适用于