[To be supplied.]
[Visual Basic] Overloads Overridable Public Function GetValue( _ ByVal obj As Object, _ ByVal index() As Object _ ) As Object [C#] public virtual object GetValue( object obj, object[] index ); [C++] public: virtual Object* GetValue( Object* obj, Object* index[] ); [JScript] public function GetValue( obj : Object, index : Object[] ) : 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 method is a convenience method that calls the following GetValue method with a BinderFlags parameter of DefaultChangeType, the Binder set to null, and the CultureInfo set to null. Note that the following method is abstract and must be implemented before this method is functional.
PropertyInfo Class | PropertyInfo Members | System.Reflection Namespace | PropertyInfo.GetValue Overload List