Module.GetField Method (System.Reflection) (original) (raw)
Source:
Source:
Source:
Source:
Returns a field having the specified name and binding attributes.
public:
virtual System::Reflection::FieldInfo ^ GetField(System::String ^ name, System::Reflection::BindingFlags bindingAttr);
public:
System::Reflection::FieldInfo ^ GetField(System::String ^ name, System::Reflection::BindingFlags bindingAttr);
public virtual System.Reflection.FieldInfo? GetField(string name, System.Reflection.BindingFlags bindingAttr);
public virtual System.Reflection.FieldInfo GetField(string name, System.Reflection.BindingFlags bindingAttr);
public 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
member this.GetField : string * System.Reflection.BindingFlags -> System.Reflection.FieldInfo
Public Overridable Function GetField (name As String, bindingAttr As BindingFlags) As FieldInfo
Public Function GetField (name As String, bindingAttr As BindingFlags) As FieldInfo
Parameters
bindingAttr
One of the BindingFlags
bit flags used to control the search.
Returns
A FieldInfo
object having the specified name and binding attributes, or null
if the field does not exist.
Exceptions
The name
parameter is null
.