Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

PropertyBuilder.GetValue Method (Object, Object[])

Gets the value of the indexed property by calling the property's getter method. This method is not supported.

Namespace:  System.Reflection.Emit
Assembly:  mscorlib (in mscorlib.dll)

public override Object GetValue(
	Object obj,
	Object[] index
)

Parameters

obj
Type: System.Object
The object whose property value will be returned.
index
Type: System.Object[]
Optional index values for indexed properties. This value should be null for non-indexed properties.

Return Value

Type: System.Object
The value of the specified indexed property.

ExceptionCondition
NotSupportedException

This method is not supported.

To get the value of a property, reflect on the property's parent type after the type is completed, using Type.GetType or Assembly.GetType. Retrieve the PropertyInfo object from the type, and call PropertyInfo.GetValue.

Silverlight

Supported in: 5, 4, 3

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2015 Microsoft