共用方式為


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

適用於