[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Discovers the attributes of a property and provides access to property metadata.
Assembly: mscorlib (in mscorlib.dll)
Thetype exposes the following members.
|DeclaringType||Gets the class that declares this member. (Inherited from MemberInfo.)|
|MemberType||When overridden in a derived class, gets a MemberTypes value indicating the type of the member — method, constructor, event, and so on. (Inherited from MemberInfo.)|
|Name||Gets the name of the current member. (Inherited from MemberInfo.)|
|PropertyType||Gets the type of this property.|
|Equals(Object)||Determines whether the specified Object is equal to the current Object. (Inherited from Object.)|
|Finalize||Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)|
|GetHashCode||Serves as a hash function for a particular type. (Inherited from Object.)|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|GetValue||Returns the property value of a specified object with optional index values for indexed properties.|
|MemberwiseClone||Creates a shallow copy of the current Object. (Inherited from Object.)|
|SetValue||Sets the property value of a specified object with optional index values for index properties.|
|ToString||Returns a string that represents the current object. (Inherited from Object.)|
Properties are logically the same as fields. A property is a named aspect of an object's state whose value is typically accessible through get and set accessors. Properties may be read-only, in which case a set routine is not supported.
Several methods in this class assume that the get accessor and set accessor methods of a property have certain formats. The signatures of the get and set methods must match the following convention:
The return type of the get method and the last argument of the set method must be identical. This is the type of the property.
The get and set methods must have the same number, type, and order of indices.
If this format is not followed, the behavior of the GetValue and SetValue methods is undefined.