Condividi tramite


DomainClassXmlSerializer.MonikerTagName Property

Gets the XML tag name.

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

Syntax

'Declaration
Public Overridable ReadOnly Property MonikerTagName As String
public virtual string MonikerTagName { get; }
public:
virtual property String^ MonikerTagName {
    String^ get ();
}
abstract MonikerTagName : string with get 
override MonikerTagName : string with get
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