Edit

Share via


IRemoteTypeContract.GetMember(String, MemberTypes, BindingFlags) Method

Definition

Returns a collection of IContract objects that provides access to all the specified members of the specified member type in the current IRemoteTypeContract, using the specified binding constraints.

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)

Parameters

name
String

The name of a member of the current IRemoteTypeContract. The name can represent multiple members that have the same name.

memberTypes
MemberTypes

A bitwise combination of the MemberTypes values that specifies the members to search for.

bindingFlags
BindingFlags

A bitwise combination of the BindingFlags values that specifies how to search for the members.

Returns

An IArrayContract<C> of IContract objects that represent the members of the current IRemoteTypeContract that have the specified name and that meet the criteria specified by the memberTypes and bindingFlags parameters.

Remarks

This method can be used to get a single member, or to get multiple members that have the same name, such as constructor or method overloads.

Applies to