Gets the value of the requested property.
Namespace: Microsoft.VisualStudio.Shell.Design
Assembly: Microsoft.VisualStudio.Shell.Design (in Microsoft.VisualStudio.Shell.Design.dll)
Syntax
'宣言
Public Overridable Function GetPropertyValue ( _
property As PropertyInfo, _
instance As Object, _
args As Object() _
) As Object
'使用
Dim instance As VirtualTypeImplementor
Dim property As PropertyInfo
Dim instance As Object
Dim args As Object()
Dim returnValue As Object
returnValue = instance.GetPropertyValue(property, _
instance, args)
public virtual Object GetPropertyValue(
PropertyInfo property,
Object instance,
Object[] args
)
public:
virtual Object^ GetPropertyValue(
PropertyInfo^ property,
Object^ instance,
array<Object^>^ args
)
public function GetPropertyValue(
property : PropertyInfo,
instance : Object,
args : Object[]
) : Object
Parameters
property
Type: System.Reflection.PropertyInfoThe property for which to get the value.
instance
Type: System.ObjectThe instance on which to retrieve the property. This may be a null reference (Nothing in Visual Basic) if the property is static.
args
Type: []An optional array of arguments used for parameterized properties. This will never be a 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.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.