Share via


VirtualTypeImplementor.GetPropertyValue Method

Definition

Gets the value of the requested property.

public:
 virtual System::Object ^ GetPropertyValue(System::Reflection::PropertyInfo ^ propertyInfo, System::Object ^ instance, cli::array <System::Object ^> ^ args);
public virtual object GetPropertyValue (System.Reflection.PropertyInfo propertyInfo, object instance, object[] args);
abstract member GetPropertyValue : System.Reflection.PropertyInfo * obj * obj[] -> obj
override this.GetPropertyValue : System.Reflection.PropertyInfo * obj * obj[] -> obj
Public Overridable Function GetPropertyValue (propertyInfo As PropertyInfo, instance As Object, args As Object()) As Object

Parameters

propertyInfo
PropertyInfo
instance
Object

The instance on which to retrieve the property. This may be null if the property is static.

args
Object[]

An optional array of arguments used for parameterized properties. This will never be null, but may be an empty array.

Returns

An object that represents the requested property.

Exceptions

If non-abstract derived class did not provide an implementation by overriding this method.

Applies to