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.

PropertyBuilder::GetValue Method (Object^, array<Object^>^)

 

Gets the value of the indexed property by calling the property's getter method.

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

public:
virtual Object^ GetValue(
	Object^ obj,
	array<Object^>^ index
) override

Parameters

obj
Type: System::Object^

The object whose property value will be returned.

index
Type: array<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.

Exception Condition
NotSupportedException

This method is not supported.

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

.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Return to top
Show:
© 2017 Microsoft