PropertyBuilder.GetValue Method (Object, array<Object[])

Microsoft Silverlight will reach end of support after October 2021. Learn more.

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)

Syntax

'Declaration
Public Overrides Function GetValue ( _
    obj As Object, _
    index As Object() _
) As Object
public override Object GetValue(
    Object obj,
    Object[] index
)

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 nulla null reference (Nothing in Visual Basic) for non-indexed properties.

Return Value

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

Exceptions

Exception Condition
NotSupportedException

This method is not supported.

Remarks

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.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

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