ElementTypeDescriptor.CreatePropertyDescriptor Method
Creates a descriptor for a property of a model element.
Namespace: Microsoft.VisualStudio.Modeling.Design
Assembly: Microsoft.VisualStudio.Modeling.Sdk (in Microsoft.VisualStudio.Modeling.Sdk.dll)
Syntax
'Declaration
Protected Overridable Function CreatePropertyDescriptor ( _
requestor As ModelElement, _
domainPropertyInfo As DomainPropertyInfo, _
attributes As Attribute() _
) As ElementPropertyDescriptor
'Usage
Dim requestor As ModelElement
Dim domainPropertyInfo As DomainPropertyInfo
Dim attributes As Attribute()
Dim returnValue As ElementPropertyDescriptor
returnValue = Me.CreatePropertyDescriptor(requestor, _
domainPropertyInfo, attributes)
protected virtual ElementPropertyDescriptor CreatePropertyDescriptor(
ModelElement requestor,
DomainPropertyInfo domainPropertyInfo,
Attribute[] attributes
)
protected:
virtual ElementPropertyDescriptor^ CreatePropertyDescriptor(
ModelElement^ requestor,
DomainPropertyInfo^ domainPropertyInfo,
array<Attribute^>^ attributes
)
protected function CreatePropertyDescriptor(
requestor : ModelElement,
domainPropertyInfo : DomainPropertyInfo,
attributes : Attribute[]
) : ElementPropertyDescriptor
Parameters
requestor
Type: Microsoft.VisualStudio.Modeling.ModelElementThe model element that has the described domain property.
domainPropertyInfo
Type: Microsoft.VisualStudio.Modeling.DomainPropertyInfoThe metadata for the domain property.
attributes
Type: array<System.Attribute[]An array that contains the attributes to apply to the domain property.
Return Value
Type: Microsoft.VisualStudio.Modeling.Design.ElementPropertyDescriptor
The descriptor for the property of the model element.
.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
Microsoft.VisualStudio.Modeling.Design Namespace
Change History
Date |
History |
Reason |
---|---|---|
July 2008 |
Added topic. |
Content bug fix. |