Udostępnij za pośrednictwem


ElementPropertyDescriptor.SetProperty Method

Definition

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.
public:
 static void SetProperty(Microsoft::VisualStudio::Modeling::ModelElement ^ element, Microsoft::VisualStudio::Modeling::DomainPropertyInfo ^ propertyInfo, System::Object ^ value);
public static void SetProperty (Microsoft.VisualStudio.Modeling.ModelElement element, Microsoft.VisualStudio.Modeling.DomainPropertyInfo propertyInfo, object value);
static member SetProperty : Microsoft.VisualStudio.Modeling.ModelElement * Microsoft.VisualStudio.Modeling.DomainPropertyInfo * obj -> unit
Public Shared Sub SetProperty (element As ModelElement, propertyInfo As DomainPropertyInfo, value As Object)

Parameters

element
ModelElement
propertyInfo
DomainPropertyInfo
value
Object

Exceptions

Thrown if ElementPropertyDescriptor not found and IsBrowsable is true on propertyInfo parameter.

Applies to