System.Reflection.PropertyInfo Members

The members of System.Reflection.PropertyInfo are listed below.

See Also: Inherited members from System.Reflection.MemberInfo

Protected Constructors

Initializes a new instance of the System.Reflection.PropertyInfo class.

Public Properties

[read-only]
abstract
AttributesPropertyAttributes.

Gets the attributes for this property.

[read-only]
abstract
CanReadbool.

Gets a value indicating whether the property can be read.

[read-only]
abstract
CanWritebool.

Gets a value indicating whether the property can be written to.

[read-only]
GetMethodMethodInfo.

Gets the get accessor for this property.

[read-only]
IsSpecialNamebool.

Gets a value indicating whether the property is the special name.

[read-only]
override
MemberTypeMemberTypes.

Gets a System.Reflection.MemberTypes value indicating that this member is a property.

[read-only]
abstract
PropertyTypeType.

Gets the type of this property.

[read-only]
SetMethodMethodInfo.

Gets the set accessor for this property.

Public Methods

override
Equals(object) : bool

Returns a value that indicates whether this instance is equal to a specified object.

GetAccessors() : MethodInfo[]

Returns an array whose elements reflect the public get, set, and other accessors of the property reflected by the current instance.

abstract
GetAccessors(bool) : MethodInfo[]

Returns an array whose elements reflect the public and, if specified, non-public get, set, and other accessors of the property reflected by the current instance.

GetConstantValue() : object

Returns a literal value associated with the property by a compiler.

GetGetMethod() : MethodInfo

Returns the public get accessor for this property.

abstract
GetGetMethod(bool) : MethodInfo

When overridden in a derived class, returns the public or non-public get accessor for this property.

override
GetHashCode() : int

Returns the hash code for this instance.

abstract
GetIndexParameters() : ParameterInfo[]

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

GetOptionalCustomModifiers() : Type[]

Returns an array of types representing the optional custom modifiers of the property.

GetRawConstantValue() : object

Returns a literal value associated with the property by a compiler.

GetRequiredCustomModifiers() : Type[]

Returns an array of types representing the required custom modifiers of the property.

GetSetMethod() : MethodInfo

Returns the public set accessor for this property.

abstract
GetSetMethod(bool) : MethodInfo

When overridden in a derived class, returns the set accessor for this property.

GetType() : Type
Documentation for this section has not yet been entered.
GetValue(object) : object

Returns the property value of a specified object.

GetValue(object, object[]) : object

Returns the property value of a specified object with optional index values for indexed properties.

abstract
GetValue(object, BindingFlags, Binder, object[], System.Globalization.CultureInfo) : object

When overridden in a derived class, returns the property value of a specified object that has the specified binding, index, and culture-specific information.

SetValue(object, object)

Sets the property value of a specified object.

SetValue(object, object, object[])

Sets the property value of a specified object with optional index values for index properties.

abstract
SetValue(object, object, BindingFlags, Binder, object[], System.Globalization.CultureInfo)

When overridden in a derived class, sets the property value for a specified object that has the specified binding, index, and culture-specific information.

Public Operators

static
Equality(PropertyInfo, PropertyInfo)

Indicates whether two System.Reflection.PropertyInfo objects are equal.

static
Inequality(PropertyInfo, PropertyInfo)

Indicates whether two System.Reflection.PropertyInfo objects are not equal.

Explicitly Implemented Interface Members

System.Runtime.InteropServices._PropertyInfo.GetIDsOfNamesDocumentation for this section has not yet been entered.
System.Runtime.InteropServices._PropertyInfo.GetType

Gets a Type object representing the System.Reflection.PropertyInfo type.

System.Runtime.InteropServices._PropertyInfo.GetTypeInfo

Retrieves the type information for an object, which can then be used to get the type information for an interface.

System.Runtime.InteropServices._PropertyInfo.GetTypeInfoCountDocumentation for this section has not yet been entered.
System.Runtime.InteropServices._PropertyInfo.InvokeDocumentation for this section has not yet been entered.