IRemoteTypeContract.GetMethod Methode

Definition

Gibt einen IRemoteMethodInfoContract Wert zurück, der Zugriff auf eine angegebene Methode der aktuellen IRemoteTypeContractZurückgibt.

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 wird.

remoteTypes
IArrayContract<IRemoteTypeContract>

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

Gibt zurück

Ein IRemoteMethodInfoContract Element, das Zugriff auf die angegebene Methode bietet, falls gefunden; andernfalls null.

Gilt für: