TypeInfo.GetDeclaredField(String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns an object that represents the specified field declared by the current type.
public:
virtual System::Reflection::FieldInfo ^ GetDeclaredField(System::String ^ name);
public virtual System.Reflection.FieldInfo GetDeclaredField (string name);
public virtual System.Reflection.FieldInfo? GetDeclaredField (string name);
abstract member GetDeclaredField : string -> System.Reflection.FieldInfo
override this.GetDeclaredField : string -> System.Reflection.FieldInfo
Public Overridable Function GetDeclaredField (name As String) As FieldInfo
Parameters
- name
- String
The name of the field.
Returns
An object that represents the specified field, if found; otherwise, null
.
Exceptions
name
is null
.
Applies to
Sodelujte z nami v storitvi GitHub
Vir za to vsebino najdete v storitvi GitHub, kjer lahko tudi ustvarite in pregledate težave in zahtevke za uveljavitev sprememb. Če želite več informacij, glejte naš vodnik za sodelavce.