FieldInfo Members

Discovers the attributes of a field and provides access to field metadata.

The following tables list the members exposed by the FieldInfo type.

  Name Description
Protected method Supported by the .NET Compact Framework FieldInfo Initializes a new instance of the FieldInfo class.
Top

  Name Description
Public property Supported by the .NET Compact Framework Attributes Gets the attributes associated with this field.
Public property Supported by the .NET Compact Framework DeclaringType  Gets the class that declares this member.(Inherited from MemberInfo.)
Public property Supported by the .NET Compact Framework FieldHandle Gets a RuntimeFieldHandle, which is a handle to the internal metadata representation of a field.
Public property Supported by the .NET Compact Framework FieldType Gets the type of this field object.
Public property Supported by the .NET Compact Framework IsAssembly Gets a value indicating whether this field has Assembly level visibility.
Public property Supported by the .NET Compact Framework IsFamily Gets a value indicating whether this field has Family level visibility.
Public property Supported by the .NET Compact Framework IsFamilyAndAssembly Gets a value indicating whether this field has FamilyAndAssembly level visibility.
Public property Supported by the .NET Compact Framework IsFamilyOrAssembly Gets a value indicating whether this field has FamilyOrAssembly level visibility.
Public property Supported by the .NET Compact Framework IsInitOnly Gets a value indicating whether the field can only be set in the body of the constructor.
Public property Supported by the .NET Compact Framework IsLiteral Gets a value indicating whether the value is written at compile time and cannot be changed.
Public property Supported by the .NET Compact Framework IsNotSerialized Gets a value indicating whether this field has the NotSerialized attribute.
Public property Supported by the .NET Compact Framework IsPinvokeImpl Gets a value indicating whether the corresponding PinvokeImpl attribute is set in FieldAttributes.
Public property Supported by the .NET Compact Framework IsPrivate Gets a value indicating whether the field is private.
Public property Supported by the .NET Compact Framework IsPublic Gets a value indicating whether the field is public.
Public property Supported by the .NET Compact Framework IsSpecialName Gets a value indicating whether the corresponding SpecialName attribute is set in the FieldAttributes enumerator.
Public property Supported by the .NET Compact Framework IsStatic Gets a value indicating whether the field is static.
Public property Supported by the .NET Compact Framework MemberType Gets a MemberTypes value indicating that this member is a field.
Public property MetadataToken  Gets a value that identifies a metadata element.(Inherited from MemberInfo.)
Public property Module  Gets the module in which the type that declares the member represented by the current MemberInfo is defined.(Inherited from MemberInfo.)
Public property Supported by the .NET Compact Framework Name  Gets the name of the current member.(Inherited from MemberInfo.)
Public property Supported by the .NET Compact Framework ReflectedType  Gets the class object that was used to obtain this instance of MemberInfo.(Inherited from MemberInfo.)
Top

(see also Protected Methods )
  Name Description
Public method Supported by the .NET Compact Framework Equals  Overloaded. Determines whether two Object instances are equal. (Inherited from Object.)
Public method Supported by the .NET Compact Framework GetCustomAttributes  Overloaded. When overridden in a derived class, returns all attributes applied to this member. (Inherited from MemberInfo.)
Public method Static Supported by the .NET Compact Framework GetFieldFromHandle Overloaded. Gets a FieldInfo for the field represented by a handle.
Public method Supported by the .NET Compact Framework GetHashCode  Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.)
Public method GetOptionalCustomModifiers Gets an array of types that identify the optional custom modifiers of the field.
Public method GetRawConstantValue Returns a literal value associated with the field by a compiler.
Public method GetRequiredCustomModifiers Gets an array of types that identify the required custom modifiers of the property.
Public method Supported by the .NET Compact Framework GetType  Gets the Type of the current instance. (Inherited from Object.)
Public method Supported by the .NET Compact Framework GetValue When overridden in a derived class, returns the value of a field supported by a given object.
Public method GetValueDirect Returns the value of a field supported by a given object.
Public method Supported by the .NET Compact Framework IsDefined  When overridden in a derived class, indicates whether one or more instance of attributeType is applied to this member. (Inherited from MemberInfo.)
Public method Static Supported by the .NET Compact Framework ReferenceEquals  Determines whether the specified Object instances are the same instance. (Inherited from Object.)
Public method Supported by the .NET Compact Framework SetValue Overloaded. Sets the value of the field for the given object to the given value.
Public method SetValueDirect Sets the value of the field supported by the given object.
Public method Supported by the .NET Compact Framework ToString  Returns a String that represents the current Object. (Inherited from Object.)
Top

  Name Description
Protected method Supported by the .NET Compact Framework Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Protected method Supported by the .NET Compact Framework MemberwiseClone  Creates a shallow copy of the current Object. (Inherited from Object.)
Top

  Name Description
Explicit interface implementation Method System.Runtime.InteropServices._FieldInfo.GetIDsOfNames Maps a set of names to a corresponding set of dispatch identifiers.
Explicit interface implementation Method System.Runtime.InteropServices._FieldInfo.GetType Gets a Type object representing the FieldInfo type.
Explicit interface implementation Method System.Runtime.InteropServices._FieldInfo.GetTypeInfo Retrieves the type information for an object, which can then be used to get the type information for an interface.
Explicit interface implementation Method System.Runtime.InteropServices._FieldInfo.GetTypeInfoCount Retrieves the number of type information interfaces that an object provides (either 0 or 1).
Explicit interface implementation Method System.Runtime.InteropServices._FieldInfo.Invoke Provides access to properties and methods exposed by an object.
Top

Community Additions

ADD
Show: