다음을 통해 공유


ElementPropertyDescriptor.SetProperty Method

Set the property value. Property value is generally set via an ElementPropertyDescriptor. It will be set directly via the SetValue method on propertyInfo if - IsBrowsable attribute is set to false on propertyInfo and ElementPropertyDescriptor is not found.

Namespace:  Microsoft.VisualStudio.Modeling.Design
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)

Syntax

'Declaration
Public Shared Sub SetProperty ( _
    element As ModelElement, _
    propertyInfo As DomainPropertyInfo, _
    value As Object _
)
public static void SetProperty(
    ModelElement element,
    DomainPropertyInfo propertyInfo,
    Object value
)
public:
static void SetProperty(
    ModelElement^ element, 
    DomainPropertyInfo^ propertyInfo, 
    Object^ value
)
static member SetProperty : 
        element:ModelElement * 
        propertyInfo:DomainPropertyInfo * 
        value:Object -> unit
public static function SetProperty(
    element : ModelElement, 
    propertyInfo : DomainPropertyInfo, 
    value : Object
)

Parameters

.NET Framework Security

See Also

Reference

ElementPropertyDescriptor Class

Microsoft.VisualStudio.Modeling.Design Namespace