ElementPropertyDescriptor Constructor (ElementTypeDescriptor, ModelElement, DomainPropertyInfo, array<Attribute[])

Initializes a new instance of the ElementPropertyDescriptor class and specifies a default value provider.

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

Syntax

'Declaration
Public Sub New ( _
    owner As ElementTypeDescriptor, _
    modelElement As ModelElement, _
    domainProperty As DomainPropertyInfo, _
    attributes As Attribute() _
)
'Usage
Dim owner As ElementTypeDescriptor 
Dim modelElement As ModelElement 
Dim domainProperty As DomainPropertyInfo 
Dim attributes As Attribute()

Dim instance As New ElementPropertyDescriptor(owner, modelElement, _
    domainProperty, attributes)
public ElementPropertyDescriptor(
    ElementTypeDescriptor owner,
    ModelElement modelElement,
    DomainPropertyInfo domainProperty,
    Attribute[] attributes
)
public:
ElementPropertyDescriptor(
    ElementTypeDescriptor^ owner, 
    ModelElement^ modelElement, 
    DomainPropertyInfo^ domainProperty, 
    array<Attribute^>^ attributes
)
public function ElementPropertyDescriptor(
    owner : ElementTypeDescriptor, 
    modelElement : ModelElement, 
    domainProperty : DomainPropertyInfo, 
    attributes : Attribute[]
)

Parameters

  • modelElement
    Type: Microsoft.VisualStudio.Modeling.ModelElement

    The model element that has the described domain property; or nulla null reference (Nothing in Visual Basic) when this domain property is not associated with a model element.

  • attributes
    Type: array<System.Attribute[]

    An array that contains the attributes to apply to the domain property.

Exceptions

Exception Condition
ArgumentNullException

owner or domainProperty is nulla null reference (Nothing in Visual Basic).

Remarks

The owner provides default values for the described domain property.

.NET Framework Security

See Also

Reference

ElementPropertyDescriptor Class

ElementPropertyDescriptor Members

ElementPropertyDescriptor Overload

Microsoft.VisualStudio.Modeling.Design Namespace

ModelElement

Change History

Date

History

Reason

July 2008

Added topic.

Content bug fix.