This documentation is archived and is not being maintained.

PropertyInfo Methods

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

Public Methods

public methodEquals (inherited from Object)

Supported by the .NET Compact Framework.

Overloaded. Determines whether two Object instances are equal.
public methodGetAccessors

Supported by the .NET Compact Framework.

Overloaded. Returns an array of the get and set accessors on this property.
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 methodGetGetMethod

Supported by the .NET Compact Framework.

Overloaded. Returns a MethodInfo representing the get accessor for this property.
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 methodGetIndexParameters

Supported by the .NET Compact Framework.

When overridden in a derived class, returns an array of all the index parameters for the property.
public methodGetSetMethod

Supported by the .NET Compact Framework.

Overloaded. Returns a MethodInfo representing the set accessor for this property.
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.

Overloaded. Returns the value of the property.
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 property value for the given object to the given value.
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

PropertyInfo Class | System.Reflection Namespace

Show: