Returns the value of the property with optional index values for index properties.
[Visual Basic] Overloads MustOverride Public Function GetValue( _ ByVal obj As Object, _ ByVal invokeAttr As BindingFlags, _ ByVal binder As Binder, _ ByVal index() As Object, _ ByVal culture As CultureInfo _ ) As Object [C#] public abstract object GetValue( object obj, BindingFlags invokeAttr, Binder binder, object[] index, CultureInfo culture ); [C++] public: virtual Object* GetValue( Object* obj, BindingFlags invokeAttr, Binder* binder, Object* index[], CultureInfo* culture ) = 0; [JScript] public abstract function GetValue( obj : Object, invokeAttr : BindingFlags, binder : Binder, index : Object[], culture : CultureInfo ) : Object;
Returns the property value for obj.
To use the GetValue method, first get the class Type. From the Type, get the PropertyInfo. From the PropertyInfo, use the GetValue method.
Exception Type | Condition |
---|---|
ArgumentException | the index array doesn't contain the exact number and type of arguments needed. |
This implementation throws NotSupportedException.
PropertyInfo Class | PropertyInfo Members | System.Reflection Namespace | PropertyInfo.GetValue Overload List