Freigeben über


VirtualTypeImplementor.GetPropertyValue Method

Gets the value of the requested property.

Namespace:  Microsoft.VisualStudio.Shell.Design
Assembly:  Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)

Syntax

'Declaration
Public Overridable Function GetPropertyValue ( _
    propertyInfo As PropertyInfo, _
    instance As Object, _
    args As Object() _
) As Object
'Usage
Dim instance As VirtualTypeImplementor
Dim propertyInfo As PropertyInfo
Dim instance As Object
Dim args As Object()
Dim returnValue As Object

returnValue = instance.GetPropertyValue(propertyInfo, _
    instance, args)
public virtual Object GetPropertyValue(
    PropertyInfo propertyInfo,
    Object instance,
    Object[] args
)
public:
virtual Object^ GetPropertyValue(
    PropertyInfo^ propertyInfo, 
    Object^ instance, 
    array<Object^>^ args
)
abstract GetPropertyValue : 
        propertyInfo:PropertyInfo * 
        instance:Object * 
        args:Object[] -> Object 
override GetPropertyValue : 
        propertyInfo:PropertyInfo * 
        instance:Object * 
        args:Object[] -> Object 
public function GetPropertyValue(
    propertyInfo : PropertyInfo, 
    instance : Object, 
    args : Object[]
) : Object

Parameters

  • instance
    Type: System.Object
    The instance on which to retrieve the property. This may be nulla null reference (Nothing in Visual Basic) if the property is static.
  • args
    Type: array<System.Object[]
    An optional array of arguments used for parameterized properties. This will never be nulla null reference (Nothing in Visual Basic), but may be an empty array.

Return Value

Type: System.Object
An object that represents the requested property.

Exceptions

Exception Condition
NotImplementedException

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

Remarks

Returns the object corresponding to the specified property.

.NET Framework Security

See Also

Reference

VirtualTypeImplementor Class

VirtualTypeImplementor Members

Microsoft.VisualStudio.Shell.Design Namespace