다음을 통해 공유


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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)

Syntax

‘선언
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

Return Value

Type: System.ComponentModel.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