CodeGenerationUtilities.GetDomainClassMonikerTagName Method (DomainClass, String)

Get the MonikerTagName for a domain class, when it is serialized as a moniker. Note that the tag name cannot be the same for moniker, because that will require two definitions of the same element in the generated schema. The default name used (if not specified using "XmlClassData.MonikerElementName"), will be the non-moniker XmlTagName followed by "Moniker".

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

Syntax

'Declaration
Public Shared Function GetDomainClassMonikerTagName ( _
    domainClass As DomainClass, _
    currentNamespace As String _
) As String
public static string GetDomainClassMonikerTagName(
    DomainClass domainClass,
    string currentNamespace
)
public:
static String^ GetDomainClassMonikerTagName(
    DomainClass^ domainClass, 
    String^ currentNamespace
)
static member GetDomainClassMonikerTagName : 
        domainClass:DomainClass * 
        currentNamespace:string -> string
public static function GetDomainClassMonikerTagName(
    domainClass : DomainClass, 
    currentNamespace : String
) : String

Parameters

  • currentNamespace
    Type: String

Return Value

Type: String
The moniker tag name of the given DomainClass.

Remarks

Assumption is made here that the domainClass belongs to the targetNamespace

.NET Framework Security

See Also

Reference

CodeGenerationUtilities Class

GetDomainClassMonikerTagName Overload

Microsoft.VisualStudio.Modeling.DslDefinition Namespace