TypeInfo.GetField 方法

定義

多載

GetField(String)
GetField(String, BindingFlags)

GetField(String)

public:
 System::Reflection::FieldInfo ^ GetField(System::String ^ name);
public System.Reflection.FieldInfo GetField (string name);
member this.GetField : string -> System.Reflection.FieldInfo
Public Function GetField (name As String) As FieldInfo

參數

name
String

傳回

GetField(String, BindingFlags)

public:
 virtual System::Reflection::FieldInfo ^ GetField(System::String ^ name, System::Reflection::BindingFlags bindingAttr);
public virtual System.Reflection.FieldInfo GetField (string name, System.Reflection.BindingFlags bindingAttr);
abstract member GetField : string * System.Reflection.BindingFlags -> System.Reflection.FieldInfo
override this.GetField : string * System.Reflection.BindingFlags -> System.Reflection.FieldInfo
Public Overridable Function GetField (name As String, bindingAttr As BindingFlags) As FieldInfo

參數

name
String
bindingAttr
BindingFlags

傳回

適用於