Share via


IRemoteTypeContract.GetMethod Methode

Definition

Gibt einen IRemoteMethodInfoContract zurück, der Zugriff auf eine angegebene Methode des aktuellen IRemoteTypeContract bereitstellt.

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

Parameter

name
String

Der Name einer Methode des aktuellen IRemoteTypeContract.

bindingFlags
BindingFlags

Eine bitweise Kombination der BindingFlags-Werte, die angibt, wie nach der Methode gesucht werden soll.

remoteTypes
IArrayContract<IRemoteTypeContract>

Ein IArrayContract<C> von IRemoteTypeContract-Objekten, die die Anzahl, die Reihenfolge und den Typ der Parameter für die abzurufende Methode darstellen.

Gibt zurück

Ein IRemoteMethodInfoContract, der Zugriff auf die angegebene Methode bereitstellt, sofern diese gefunden wird, andernfalls null.

Gilt für: