DomainClassXmlSerializer.WriteMoniker Method
Serializes, from a moniker, the model element instance that associated with this serializer instance into XML.
Namespace: Microsoft.VisualStudio.Modeling
Assembly: Microsoft.VisualStudio.Modeling.Sdk.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.10.0.dll)
Syntax
'Declaración
Public Overridable Sub WriteMoniker ( _
serializationContext As SerializationContext, _
element As ModelElement, _
writer As XmlWriter, _
sourceRolePlayer As ModelElement, _
relSerializer As DomainRelationshipXmlSerializer _
)
public virtual 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
)
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 function WriteMoniker(
serializationContext : SerializationContext,
element : ModelElement,
writer : XmlWriter,
sourceRolePlayer : ModelElement,
relSerializer : DomainRelationshipXmlSerializer
)
Parameters
- serializationContext
Type: Microsoft.VisualStudio.Modeling.SerializationContext
The serialization context that stores serialization errors, if any.
- element
Type: Microsoft.VisualStudio.Modeling.ModelElement
The model element instance that will be serialized.
- writer
Type: System.Xml.XmlWriter
The XmlReader from which to write.
- sourceRolePlayer
Type: Microsoft.VisualStudio.Modeling.ModelElement
The source role-player model element from which the moniker is referenced.
- relSerializer
Type: Microsoft.VisualStudio.Modeling.DomainRelationshipXmlSerializer
The serializer for domain relationships.
Remarks
Serializes, from a moniker, the model element instance that associated with this serializer instance into XML.
.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.