CommentShapeSerializer.WriteMoniker Method

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

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

public override void WriteMoniker(
	SerializationContext serializationContext,
	ModelElement element,
	XmlWriter writer,
	ModelElement sourceRolePlayer,
	DomainRelationshipXmlSerializer relSerializer
)

Parameters

serializationContext
Type: Microsoft.VisualStudio.Modeling.SerializationContext

Serialization context.

element
Type: Microsoft.VisualStudio.Modeling.ModelElement

CommentShape instance to be monikerized.

writer
Type: XmlWriter

XmlWriter to write serialized data to.

sourceRolePlayer
Type: Microsoft.VisualStudio.Modeling.ModelElement

Source element that references the CommentShape instance being monikerized.

relSerializer
Type: Microsoft.VisualStudio.Modeling.DomainRelationshipXmlSerializer

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

Show: