Share via


DomainClassXmlSerializer.WriteMoniker Method

Definition

Public WriteMoniker() method that writes a monikerized ModelElement instance into XML.

public:
 virtual void WriteMoniker(Microsoft::VisualStudio::Modeling::SerializationContext ^ serializationContext, Microsoft::VisualStudio::Modeling::ModelElement ^ element, System::Xml::XmlWriter ^ writer, Microsoft::VisualStudio::Modeling::ModelElement ^ sourceRolePlayer, Microsoft::VisualStudio::Modeling::DomainRelationshipXmlSerializer ^ relSerializer);
public virtual void WriteMoniker (Microsoft.VisualStudio.Modeling.SerializationContext serializationContext, Microsoft.VisualStudio.Modeling.ModelElement element, System.Xml.XmlWriter writer, Microsoft.VisualStudio.Modeling.ModelElement sourceRolePlayer, Microsoft.VisualStudio.Modeling.DomainRelationshipXmlSerializer relSerializer);
abstract member WriteMoniker : Microsoft.VisualStudio.Modeling.SerializationContext * Microsoft.VisualStudio.Modeling.ModelElement * System.Xml.XmlWriter * Microsoft.VisualStudio.Modeling.ModelElement * Microsoft.VisualStudio.Modeling.DomainRelationshipXmlSerializer -> unit
override this.WriteMoniker : Microsoft.VisualStudio.Modeling.SerializationContext * Microsoft.VisualStudio.Modeling.ModelElement * System.Xml.XmlWriter * Microsoft.VisualStudio.Modeling.ModelElement * Microsoft.VisualStudio.Modeling.DomainRelationshipXmlSerializer -> unit
Public Overridable Sub WriteMoniker (serializationContext As SerializationContext, element As ModelElement, writer As XmlWriter, sourceRolePlayer As ModelElement, relSerializer As DomainRelationshipXmlSerializer)

Parameters

serializationContext
SerializationContext

Serialization context.

element
ModelElement

Element to be monikerized.

writer
XmlWriter

XmlWriter to write serialized data to.

sourceRolePlayer
ModelElement

Source element that references the element to be monikerized.

relSerializer
DomainRelationshipXmlSerializer

Serializer that handles the relationship connecting the source element to the element being monikerized.

Applies to