Condividi tramite


IRemoteTypeContract.GetMember(String, MemberTypes, BindingFlags) Metodo

Definizione

Restituisce un insieme di oggetti IContract che consente di accedere a tutti i membri specificati del tipo di membro specificato nell'oggetto IRemoteTypeContract corrente, utilizzando i vincoli di associazione specificati.

public:
 System::AddIn::Contract::Collections::IArrayContract<System::AddIn::Contract::IContract ^> ^ GetMember(System::String ^ name, System::Reflection::MemberTypes memberTypes, System::Reflection::BindingFlags bindingFlags);
public System.AddIn.Contract.Collections.IArrayContract<System.AddIn.Contract.IContract> GetMember (string name, System.Reflection.MemberTypes memberTypes, System.Reflection.BindingFlags bindingFlags);
abstract member GetMember : string * System.Reflection.MemberTypes * System.Reflection.BindingFlags -> System.AddIn.Contract.Collections.IArrayContract<System.AddIn.Contract.IContract>
Public Function GetMember (name As String, memberTypes As MemberTypes, bindingFlags As BindingFlags) As IArrayContract(Of IContract)

Parametri

name
String

Nome di un membro dell'oggetto IRemoteTypeContract corrente. Il nome può rappresentare più membri con lo stesso nome.

memberTypes
MemberTypes

Combinazione bit per bit dei valori dell'oggetto MemberTypes che specifica i membri da cercare.

bindingFlags
BindingFlags

Combinazione bit per bit dei valori dell'oggetto BindingFlags che specifica come cercare i membri.

Restituisce

Oggetto IArrayContract<C> di oggetti IContract che rappresentano i membri dell'oggetto IRemoteTypeContract corrente che hanno il nome specificato e soddisfano i criteri specificati dai parametri memberTypes e bindingFlags.

Commenti

Questo metodo può essere usato per ottenere un singolo membro o per ottenere più membri con lo stesso nome, ad esempio overload del costruttore o del metodo.

Si applica a