TypeExtensions.GetMember 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
GetMember(Type, String) | |
GetMember(Type, String, BindingFlags) |
GetMember(Type, String)
public:
[System::Runtime::CompilerServices::Extension]
static cli::array <System::Reflection::MemberInfo ^> ^ GetMember(Type ^ type, System::String ^ name);
public static System.Reflection.MemberInfo[] GetMember (this Type type, string name);
static member GetMember : Type * string -> System.Reflection.MemberInfo[]
<Extension()>
Public Function GetMember (type As Type, name As String) As MemberInfo()
參數
- type
- Type
- name
- String
傳回
適用於
GetMember(Type, String, BindingFlags)
public:
[System::Runtime::CompilerServices::Extension]
static cli::array <System::Reflection::MemberInfo ^> ^ GetMember(Type ^ type, System::String ^ name, System::Reflection::BindingFlags bindingAttr);
public static System.Reflection.MemberInfo[] GetMember (this Type type, string name, System.Reflection.BindingFlags bindingAttr);
static member GetMember : Type * string * System.Reflection.BindingFlags -> System.Reflection.MemberInfo[]
<Extension()>
Public Function GetMember (type As Type, name As String, bindingAttr As BindingFlags) As MemberInfo()
參數
- type
- Type
- name
- String
- bindingAttr
- BindingFlags