NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

PropertyInfo.GetValue (Object, BindingFlags, Binder, Object[], CultureInfo)

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;

Parameters

obj
The object whose property value will be returned.
invokeAttr
[To be supplied.]
binder
[To be supplied.]
index
[To be supplied.]
culture
[To be supplied.]

Return Value

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.

Exceptions

Exception Type Condition
ArgumentException the index array doesn't contain the exact number and type of arguments needed.

Remarks

This implementation throws NotSupportedException.

See Also

PropertyInfo Class | PropertyInfo Members | System.Reflection Namespace | PropertyInfo.GetValue Overload List