CompartmentSerializer.WriteMoniker 方法

定义

公开 WriteMoniker () 方法,该方法将 monikerized 隔离实例写入 XML 中。

public:
 override 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 override 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);
override this.WriteMoniker : Microsoft.VisualStudio.Modeling.SerializationContext * Microsoft.VisualStudio.Modeling.ModelElement * System.Xml.XmlWriter * Microsoft.VisualStudio.Modeling.ModelElement * Microsoft.VisualStudio.Modeling.DomainRelationshipXmlSerializer -> unit
Public Overrides Sub WriteMoniker (serializationContext As SerializationContext, element As ModelElement, writer As XmlWriter, sourceRolePlayer As ModelElement, relSerializer As DomainRelationshipXmlSerializer)

参数

serializationContext
SerializationContext

序列化上下文。

element
ModelElement

要 monikerized 的隔离舱实例。

writer
XmlWriter

要将序列化数据写入到的 XmlWriter。

sourceRolePlayer
ModelElement

引用要 monikerized 的隔离舱实例的源元素。

relSerializer
DomainRelationshipXmlSerializer

处理将源元素连接到要 monikerized 的隔离舱实例的关系的序列化程序。

适用于