ElementTypeDescriptor::GetDisplayProperties Method (ModelElement^, PropertyDescriptor^)
Returns a collection of property descriptors for all the properties of a model element.
Assembly: Microsoft.VisualStudio.Modeling.Sdk.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.12.0.dll)
protected:
PropertyDescriptorCollection^ GetDisplayProperties(
ModelElement^ requestor,
PropertyDescriptor^% defaultPropertyDescriptor
)
Parameters
- requestor
-
Type:
Microsoft.VisualStudio.Modeling::ModelElement^
The model element to get the properties of.
- defaultPropertyDescriptor
-
Type:
System.ComponentModel::PropertyDescriptor^
A descriptor for the default property of the element, passed by reference.
Return Value
Type: System.ComponentModel::PropertyDescriptorCollection^The collection of property descriptors for all of the properties of the model element.
| Exception | Condition |
|---|---|
| ArgumentNullException | requestor is null. |
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:
Exclude domain properties of the element for which ShouldCreatePropertyDescriptor returns false.
If IncludeOppositeRolePlayerProperties returns true, add a role property for each zero-to-one and one-to-one relationship. Each such role property is generated by calling the CreateRolePlayerPropertyDescriptor method.
If IncludeEmbeddingRelationshipProperties returns true, add properties of the target element of any embedded relationships that do not allow duplicates.