Bewerken

Share via


TypeReflector.GetMember(String, BindingFlags) Method

Definition

Searches for the specified member, using the specified binding constraints.

This API supports the product infrastructure and is not intended to be used directly from your code.

public:
 override cli::array <System::Reflection::MemberInfo ^> ^ GetMember(System::String ^ name, System::Reflection::BindingFlags bindingAttr);
public override System.Reflection.MemberInfo[] GetMember (string name, System.Reflection.BindingFlags bindingAttr);
override this.GetMember : string * System.Reflection.BindingFlags -> System.Reflection.MemberInfo[]
Public Overrides Function GetMember (name As String, bindingAttr As BindingFlags) As MemberInfo()

Parameters

name
String

The name of the member to search for.

bindingAttr
BindingFlags

A bitwise combination of the enumeration values that specify the way in which the search for members and types is conducted by the reflection operation.

Returns

An array of MemberInfo objects that represents the public members that have the specified name, if found; otherwise, an empty array.

Applies to

See also