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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
'宣告
Public Sub New ( _
owner As ElementTypeDescriptor, _
modelElement As ModelElement, _
domainProperty As DomainPropertyInfo, _
attributes As Attribute() _
)
public ElementPropertyDescriptor(
ElementTypeDescriptor owner,
ModelElement modelElement,
DomainPropertyInfo domainProperty,
Attribute[] attributes
)
public:
ElementPropertyDescriptor(
ElementTypeDescriptor^ owner,
ModelElement^ modelElement,
DomainPropertyInfo^ domainProperty,
array<Attribute^>^ attributes
)
new :
owner:ElementTypeDescriptor *
modelElement:ModelElement *
domainProperty:DomainPropertyInfo *
attributes:Attribute[] -> ElementPropertyDescriptor
public function ElementPropertyDescriptor(
owner : ElementTypeDescriptor,
modelElement : ModelElement,
domainProperty : DomainPropertyInfo,
attributes : Attribute[]
)
Parameters
- owner
Type: Microsoft.VisualStudio.Modeling.Design.ElementTypeDescriptor
The element type descriptor for the model element that has the described domain property.
- modelElement
Type: Microsoft.VisualStudio.Modeling.ModelElement
The model element that has the described domain property; or null when this domain property is not associated with a model element.
- domainProperty
Type: Microsoft.VisualStudio.Modeling.DomainPropertyInfo
The metadata for the described domain property.
- 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
- 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