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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.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
- element
Type: Microsoft.VisualStudio.Modeling.ModelElement
- propertyInfo
Type: Microsoft.VisualStudio.Modeling.DomainPropertyInfo
- value
Type: System.Object
.NET Framework Security
- 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.