ElementTypeDescriptor Class
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

ElementTypeDescriptor Class

Updated: July 2008

Provides additional run-time type information for a ModelElement object.

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

public class ElementTypeDescriptor : CustomTypeDescriptor

This class provides dynamic custom type information for model elements.

The Domain-Specific Language Tools (DSL Tools) use this type to represent the model elements in a domain model. This type controls how an element is handled by the property grid in the domain model and provides methods for working with the described element.

To create a customized element type descriptor, inherit from this class and override one or more of the members.


If your DSL definition specifies a domain type descriptor for a domain class, then the generated code for the definition will contain a type descriptor, derived from ElementTypeDescriptor, specifically for that domain class. For more information, see Defining Domain Type Descriptors.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.




July 2008

Added topic.

Content bug fix.

© 2016 Microsoft