This topic has not yet been rated - Rate this topic

FieldInfo Members

FieldInfo overview

Public Properties

public propertyAttributes

Supported by the .NET Compact Framework.

Gets the attributes associated with this field.
public propertyDeclaringType (inherited from MemberInfo)

Supported by the .NET Compact Framework.

Gets the class that declares this member.
public propertyFieldHandle

Supported by the .NET Compact Framework.

Gets a RuntimeFieldHandle, which is a handle to the internal metadata representation of a field.
public propertyFieldType

Supported by the .NET Compact Framework.

Gets the type of this field object.
public propertyIsAssembly

Supported by the .NET Compact Framework.

Gets a value indicating whether this field has Assembly level visibility.
public propertyIsFamily

Supported by the .NET Compact Framework.

Gets a value indicating whether this field has Family level visibility.
public propertyIsFamilyAndAssembly

Supported by the .NET Compact Framework.

Gets a value indicating whether this field has FamilyAndAssembly level visibility.
public propertyIsFamilyOrAssembly

Supported by the .NET Compact Framework.

Gets a value indicating whether this field has FamilyOrAssembly level visibility.
public propertyIsInitOnly

Supported by the .NET Compact Framework.

Gets a value indicating whether the field can only be set in the body of the constructor.
public propertyIsLiteral

Supported by the .NET Compact Framework.

Gets a value indicating whether the value is written at compile time and cannot be changed.
public propertyIsNotSerialized

Supported by the .NET Compact Framework.

Gets a value indicating whether this field has the NotSerialized attribute.
public propertyIsPinvokeImpl

Supported by the .NET Compact Framework.

Gets a value indicating whether the corresponding PinvokeImpl attribute is set in FieldAttributes.
public propertyIsPrivate

Supported by the .NET Compact Framework.

Gets a value indicating whether the field is private.
public propertyIsPublic

Supported by the .NET Compact Framework.

Gets a value indicating whether the field is public.
public propertyIsSpecialName

Supported by the .NET Compact Framework.

Gets a value indicating whether the corresponding SpecialName attribute is set in the FieldAttributes enumerator.
public propertyIsStatic

Supported by the .NET Compact Framework.

Gets a value indicating whether the field is static.
public propertyMemberType

Supported by the .NET Compact Framework.

Overridden. Gets the Type of property reflected by this FieldInfo object. The retrieved value indicates that this member is a field.
public propertyName (inherited from MemberInfo)

Supported by the .NET Compact Framework.

Gets the name of this member.
public propertyReflectedType (inherited from MemberInfo)

Supported by the .NET Compact Framework.

Gets the class object that was used to obtain this instance of MemberInfo.

Public Methods

public methodEquals (inherited from Object)

Supported by the .NET Compact Framework.

Overloaded. Determines whether two Object instances are equal.
public methodGetCustomAttributes (inherited from MemberInfo)

Supported by the .NET Compact Framework.

Overloaded. When overridden in a derived class, returns all attributes defined on this member.
public methodstatic (Shared in Visual Basic)GetFieldFromHandle

Supported by the .NET Compact Framework.

Gets a FieldInfo containing the value of the field reflected by this instance.
public methodGetHashCode (inherited from Object)

Supported by the .NET Compact Framework.

Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
public methodGetType (inherited from Object)

Supported by the .NET Compact Framework.

Gets the Type of the current instance.
public methodGetValue

Supported by the .NET Compact Framework.

When overridden in a derived class, returns the value of a field supported by a given object.
public methodGetValueDirect Returns the value of a field supported by a given object.
public methodIsDefined (inherited from MemberInfo)

Supported by the .NET Compact Framework.

When overridden in a derived class, indicates whether one or more instance of attributeType is defined on this member.
public methodSetValue

Supported by the .NET Compact Framework.

Overloaded. Sets the value of the field for the given object to the given value.
public methodSetValueDirect Sets the value of the field supported by the given object.
public methodToString (inherited from Object)

Supported by the .NET Compact Framework.

Returns a String that represents the current Object.

Protected Constructors

protected constructorFieldInfo Constructor

Supported by the .NET Compact Framework.

Initializes a new instance of the FieldInfo class.

Protected Methods

protected methodFinalize (inherited from Object)

Supported by the .NET Compact Framework.

Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object)

Supported by the .NET Compact Framework.

Creates a shallow copy of the current Object.

See Also

FieldInfo Class | System.Reflection Namespace

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.