Retrieves the value of the field supported by the given object.
[Visual Basic] Overrides Public Function GetValue( _ ByVal obj As Object _ ) As Object [C#] public override object GetValue( object obj ); [C++] public: override Object* GetValue( Object* obj ); [JScript] public override function GetValue( obj : Object ) : Object;
Returns a Variant containing the value of the field reflected by this instance.
Exception Type | Condition |
---|---|
NotSupportedException | . This method is not supported in this preliminary release of the NGWS SDK. |
If the field is static, the obj parameter is ignored. For non-static fields, obj should be an instance of a class that inherits or declares the field.
The return type of GetValue is Variant. For example, if the field holds a Boolean primitive value, an instance of Variant with the appropriate Boolean value is returned. Before returning the value, GetValue checks to see if the user has access permission.
Access restrictions are ignored for fully trusted code. Private constructors, methods, fields, and properties can be accessed and invoked via Reflection whenever the code is fully trusted.
FieldBuilder Class | FieldBuilder Members | System.Reflection.Emit Namespace