This documentation is archived and is not being maintained.

PortShapeSerializer.WriteMoniker Method

Public WriteMoniker() method that writes a monikerized PortShape 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

PortShape instance to be monikerized.

writer
Type: XmlWriter

XmlWriter to write serialized data to.

sourceRolePlayer
Type: Microsoft.VisualStudio.Modeling.ModelElement

Source element that references the PortShape instance being monikerized.

relSerializer
Type: Microsoft.VisualStudio.Modeling.DomainRelationshipXmlSerializer

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

Show: