Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

FieldInfo Methods

The methods of the FieldInfo class are listed here. For a complete list of FieldInfo class members, see the FieldInfo Members topic.

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 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

Show:
© 2017 Microsoft