The properties of the FieldInfo class are listed below. For a complete list of FieldInfo class members, see the FieldInfo Members topic.
Attributes | Retrieves the attributes associated with this field. |
DeclaringType (inherited from MemberInfo) | Retrieves the class that declares this member. |
FieldHandle | Retrieves a RuntimeFieldHandle, which is a handle to the internal metadata representation of a field. |
FieldType | Retrieves the Type of this field. |
IsAssembly | Indicates whether this field has Assembly level visibility. |
IsFamily | Indicates whether this field has Family level visibility. |
IsFamilyAndAssembly | Indicates whether this field has FamilyANDAssembly level visibility. |
IsFamilyOrAssembly | Indicates whether this field has FamilyORAssembly level visibility. |
IsInitOnly | Indicates whether the field can only be set in the body of the constructor. |
IsLiteral | Indicates whether the value is written at compile time and cannot be changed. |
IsNotSerialized | Indicates whether this field has the NotSerialized attribute. |
IsPinvokeImpl | Indicates whether the corresponding PinvokeImpl attribute is set in FieldAttributes. |
IsPrivate | Retrieves a value indicating whether the field is private. |
IsPublic | Indicates whether the field is public. |
IsSpecialName | Indicates whether the corresponding SpecialName attribute is set in the FieldAttributes enumerator. |
IsStatic | Indicates whether the field is static. |
MemberType | Retrieves the Type of property reflected by this FieldInfo object. The retrieved value indicates that this member is a field. |
Name (inherited from MemberInfo) | Retrieves the name of this member. |
ReflectedType (inherited from MemberInfo) | Retrieves the class object that was used to obtain this instance of MemberInfo. |