Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Initializes a new instance of the ElementPropertyDescriptor class.
Namespace:  Microsoft.VisualStudio.Modeling.Design
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)
Syntax
'Declaration
Public Sub New ( _
    modelElement As ModelElement, _
    domainProperty As DomainPropertyInfo, _
    attributes As Attribute() _
)
public ElementPropertyDescriptor(
    ModelElement modelElement,
    DomainPropertyInfo domainProperty,
    Attribute[] attributes
)
public:
ElementPropertyDescriptor(
    ModelElement^ modelElement, 
    DomainPropertyInfo^ domainProperty, 
    array<Attribute^>^ attributes
)
new : 
        modelElement:ModelElement * 
        domainProperty:DomainPropertyInfo * 
        attributes:Attribute[] -> ElementPropertyDescriptor
public function ElementPropertyDescriptor(
    modelElement : ModelElement, 
    domainProperty : DomainPropertyInfo, 
    attributes : Attribute[]
)
Parameters
- modelElement 
 Type: Microsoft.VisualStudio.Modeling.ModelElement- The model element that has this domain property; or null to not associate this domain property with a model element. 
- domainProperty 
 Type: Microsoft.VisualStudio.Modeling.DomainPropertyInfo- The metadata for the described domain property. 
- attributes 
 Type: array<System.Attribute[]- The attributes to associate with the domain property. 
Exceptions
| Exception | Condition | 
|---|---|
| ArgumentNullException | domainProperty is nulla null reference (Nothing in Visual Basic). | 
.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.
See Also
Reference
ElementPropertyDescriptor Class
ElementPropertyDescriptor Overload