다음을 통해 공유


DomainClassXmlSerializer.MonikerTagName Property

Gets the XML tag name.

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

Syntax

‘선언
Public Overridable ReadOnly Property MonikerTagName As String
    Get
public virtual string MonikerTagName { get; }
public:
virtual property String^ MonikerTagName {
    String^ get ();
}
abstract MonikerTagName : string
override MonikerTagName : string
function get MonikerTagName () : String

Property Value

Type: System.String
Returns the XML tag name when serializing the handled model element as a moniker.

Remarks

This tag name is different from the XmlTagName. The MonikerTagName is for writing a moniker, and XmlTagName is for writing the actual instance of the model element. The tag names must be different so that the associated schema for the serialized XML is not ambiguous.

A serializer implementation that overrides MonikerAttributeName should also override MonikerTagName.

The base implementation returns an empty string. An empty string means that the domain class cannot be monikerized.

.NET Framework Security

See Also

Reference

DomainClassXmlSerializer Class

Microsoft.VisualStudio.Modeling Namespace