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

  • 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

See Also

Reference

ElementTypeDescriptor Class

ElementTypeDescriptor Members

Microsoft.VisualStudio.Modeling.Design Namespace

Change History

Date

History

Reason

July 2008

Added topic.

Content bug fix.