TypeExtensions.GetMember 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
GetMember(Type, String) | |
GetMember(Type, String, BindingFlags) |
GetMember(Type, String)
- Source:
- TypeExtensions.cs
- Source:
- TypeExtensions.cs
- Source:
- TypeExtensions.cs
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)
- Source:
- TypeExtensions.cs
- Source:
- TypeExtensions.cs
- Source:
- TypeExtensions.cs
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