Share via


CodeGenerationUtilities.GetNameProperty(DomainClass) Method

Definition

Return a property (in this or a base class) that can be used to idenfify an element to the user. Returns the property marked IsElementName. If there is none, returns the property marked IsMonikerKey. If there is none, returns null.

public:
 static Microsoft::VisualStudio::Modeling::DslDefinition::DomainProperty ^ GetNameProperty(Microsoft::VisualStudio::Modeling::DslDefinition::DomainClass ^ domainClass);
public static Microsoft.VisualStudio.Modeling.DslDefinition.DomainProperty GetNameProperty (Microsoft.VisualStudio.Modeling.DslDefinition.DomainClass domainClass);
static member GetNameProperty : Microsoft.VisualStudio.Modeling.DslDefinition.DomainClass -> Microsoft.VisualStudio.Modeling.DslDefinition.DomainProperty
Public Shared Function GetNameProperty (domainClass As DomainClass) As DomainProperty

Parameters

domainClass
DomainClass

Returns

Applies to