Share via


ElementTypeDescriptor.GetDisplayProperties Method (ModelElement, PropertyDescriptor%)

Returns a collection of property descriptors for all the properties of a model element.

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

Syntax

'Declaration
Protected Function GetDisplayProperties ( _
    requestor As ModelElement, _
    ByRef defaultPropertyDescriptor As PropertyDescriptor _
) As PropertyDescriptorCollection
protected PropertyDescriptorCollection GetDisplayProperties(
    ModelElement requestor,
    ref PropertyDescriptor defaultPropertyDescriptor
)
protected:
PropertyDescriptorCollection^ GetDisplayProperties(
    ModelElement^ requestor, 
    PropertyDescriptor^% defaultPropertyDescriptor
)
member GetDisplayProperties : 
        requestor:ModelElement * 
        defaultPropertyDescriptor:PropertyDescriptor byref -> PropertyDescriptorCollection
protected function GetDisplayProperties(
    requestor : ModelElement, 
    defaultPropertyDescriptor : PropertyDescriptor
) : PropertyDescriptorCollection

Parameters

  • defaultPropertyDescriptor
    Type: PropertyDescriptor%

    A descriptor for the default property of the element, passed by reference.

Return Value

Type: PropertyDescriptorCollection
The collection of property descriptors for all of the properties of the model element.

Exceptions

Exception Condition
ArgumentNullException

requestor is nulla null reference (Nothing in Visual Basic).

Remarks

If the model element is marked for deletion, then this method returns an empty collection and does not update the defaultPropertyDescriptor.

This method adds or excludes descriptors for domain properties based on the following rules:

.NET Framework Security

See Also

Reference

ElementTypeDescriptor Class

GetDisplayProperties Overload

Microsoft.VisualStudio.Modeling.Design Namespace

ShouldCreatePropertyDescriptor

IncludeOppositeRolePlayerProperties

IncludeEmbeddingRelationshipProperties

DefaultDomainProperty