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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)
Syntax
'Declaración
Public Overrides Sub WriteMoniker ( _
serializationContext As SerializationContext, _
element As ModelElement, _
writer As XmlWriter, _
sourceRolePlayer As ModelElement, _
relSerializer As DomainRelationshipXmlSerializer _
)
public override void WriteMoniker(
SerializationContext serializationContext,
ModelElement element,
XmlWriter writer,
ModelElement sourceRolePlayer,
DomainRelationshipXmlSerializer relSerializer
)
public:
virtual void WriteMoniker(
SerializationContext^ serializationContext,
ModelElement^ element,
XmlWriter^ writer,
ModelElement^ sourceRolePlayer,
DomainRelationshipXmlSerializer^ relSerializer
) override
abstract WriteMoniker :
serializationContext:SerializationContext *
element:ModelElement *
writer:XmlWriter *
sourceRolePlayer:ModelElement *
relSerializer:DomainRelationshipXmlSerializer -> unit
override WriteMoniker :
serializationContext:SerializationContext *
element:ModelElement *
writer:XmlWriter *
sourceRolePlayer:ModelElement *
relSerializer:DomainRelationshipXmlSerializer -> unit
public override function WriteMoniker(
serializationContext : SerializationContext,
element : ModelElement,
writer : XmlWriter,
sourceRolePlayer : ModelElement,
relSerializer : DomainRelationshipXmlSerializer
)
Parameters
- serializationContext
Type: Microsoft.VisualStudio.Modeling.SerializationContext
Serialization context.
- element
Type: Microsoft.VisualStudio.Modeling.ModelElement
PortShape instance to be monikerized.
- writer
Type: System.Xml.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.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.