TypeInfo.GetDeclaredField(String) TypeInfo.GetDeclaredField(String) TypeInfo.GetDeclaredField(String) TypeInfo.GetDeclaredField(String) Method

Definition

Returns an object that represents the specified public field declared by the current type.

public:
 virtual System::Reflection::FieldInfo ^ GetDeclaredField(System::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 String String String

The name of the field.

Returns

An object that represents the specified field, if found; otherwise, null.

Exceptions

Applies to