This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!
FieldInfo Members
Public:
Properties
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. |
Methods
Equals (inherited from Object) |
Determines whether the specified Object is the same instance as the current Object. Subclasses are expected to override this method to support value equality (not reference equality). |
GetCustomAttributes (inherited from MemberInfo) |
Overloaded. Returns all attributes defined on this member. |
GetFieldFromHandle |
Retrieves a FieldInfo containing the value of the field reflected by this instance.. |
GetHashCode (inherited from Object) |
Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. |
GetType (inherited from Object) |
Gets the Type of the Object. |
GetValue |
Returns the value of a field supported by a given object. |
GetValueDirect |
[To be supplied.] |
IsDefined (inherited from MemberInfo) |
Returns a Boolean if one or more instance of attributeType is defined on this member. |
SetValue |
Overloaded. Sets the value of the field for the given object to the given value. |
SetValueDirect |
[To be supplied.] |
ToString (inherited from Object) |
Returns a String that represents the current Object. |
Protected:
Constructor
Methods
Finalize (inherited from Object) |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by the Garbage Collector (GC). This method may be ignored by the runtime; therefore, necessary cleanup operations should be done elsewhere. |
MemberwiseClone (inherited from Object) |
Creates a shallow copy of the current Object. |
See Also
FieldInfo Class | System.Reflection Namespace