VirtualTypeImplementor.SetPropertyValue Method

Sets 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 Sub SetPropertyValue ( _
    propertyInfo As PropertyInfo, _
    instance As Object, _
    value As Object, _
    args As Object() _
)
‘사용 방법
Dim instance As VirtualTypeImplementor
Dim propertyInfo As PropertyInfo
Dim instance As Object
Dim value As Object
Dim args As Object()

instance.SetPropertyValue(propertyInfo, _
    instance, value, args)
public virtual void SetPropertyValue(
    PropertyInfo propertyInfo,
    Object instance,
    Object value,
    Object[] args
)
public:
virtual void SetPropertyValue(
    PropertyInfo^ propertyInfo, 
    Object^ instance, 
    Object^ value, 
    array<Object^>^ args
)
abstract SetPropertyValue : 
        propertyInfo:PropertyInfo * 
        instance:Object * 
        value:Object * 
        args:Object[] -> unit 
override SetPropertyValue : 
        propertyInfo:PropertyInfo * 
        instance:Object * 
        value:Object * 
        args:Object[] -> unit 
public function SetPropertyValue(
    propertyInfo : PropertyInfo, 
    instance : Object, 
    value : Object, 
    args : Object[]
)

Parameters

  • instance
    Type: System.Object
    The instance on which to set the property. This may be nulla null reference (Nothing in Visual Basic) if the property is static.
  • value
    Type: 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.
  • args
    Type: array<System.Object[]
    The new value of the property.

Exceptions

Exception Condition
NotImplementedException

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

.NET Framework Security

See Also

Reference

VirtualTypeImplementor Class

VirtualTypeImplementor Members

Microsoft.VisualStudio.Shell.Design Namespace