MoveableDecoratorHostShapeSerializer 类

DomainClass MoveableDecoratorHostShape 的序列化程序 MoveableDecoratorHostShapeSerializer。

继承层次结构

System.Object
  Microsoft.VisualStudio.Modeling.DomainClassXmlSerializer
    Microsoft.VisualStudio.Modeling.Diagrams.PresentationElementSerializer
      Microsoft.VisualStudio.Modeling.Diagrams.ShapeElementSerializer
        Microsoft.VisualStudio.Modeling.Diagrams.NodeShapeSerializer
          Microsoft.VisualStudio.Modeling.Diagrams.DecoratorHostShapeSerializerBase
            Microsoft.VisualStudio.Modeling.Diagrams.DecoratorHostShapeSerializer
              Microsoft.VisualStudio.Modeling.Diagrams.MoveableDecoratorHostShapeSerializerBase
                Microsoft.VisualStudio.Modeling.Diagrams.MoveableDecoratorHostShapeSerializer

命名空间:  Microsoft.VisualStudio.Modeling.Diagrams
程序集:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll 中)

语法

声明
Public Class MoveableDecoratorHostShapeSerializer _
    Inherits MoveableDecoratorHostShapeSerializerBase
public class MoveableDecoratorHostShapeSerializer : MoveableDecoratorHostShapeSerializerBase

MoveableDecoratorHostShapeSerializer 类型公开以下成员。

构造函数

  名称 说明
公共方法 MoveableDecoratorHostShapeSerializer MoveableDecoratorHostShapeSerializer 构造函数

页首

属性

  名称 说明
公共属性 MonikerAttributeName 这是在一个序列化名称化的实例已存储 MoveableDecoratorHostShape 标记 XML 属性的名称。 (继承自 MoveableDecoratorHostShapeSerializerBase。)
公共属性 MonikerTagName 这是用于的 XML 标记名称序列化 MoveableDecoratorHostShape 一个名称化实例。 (继承自 MoveableDecoratorHostShapeSerializerBase。)
公共属性 XmlTagName 这是用于序列化 MoveableDecoratorHostShape 的实例的 XML 标记名称。 (继承自 MoveableDecoratorHostShapeSerializerBase。)

页首

方法

  名称 说明
公共方法 CalculateQualifiedName 此方法计算给定的 MoveableDecoratorHostShape 的实例的名字对象。 (继承自 MoveableDecoratorHostShapeSerializerBase。)
受保护的方法 CreateInstance 此方法创建了基于读取器当前指向标记的“MoveableDecoratorHostShape”的实例。将(由调用者)确保读取器指向 MoveableDecoratorHostShape 的一个序列化的实例。 (继承自 MoveableDecoratorHostShapeSerializerBase。)
受保护的方法 CreateMonikerInstance 此方法基于读取器当前指向的标记创建 MoveableDecoratorHostShape 的名字对象。 (继承自 MoveableDecoratorHostShapeSerializerBase。)
公共方法 Equals 确定指定的对象是否等于当前对象。 (继承自 Object。)
受保护的方法 Finalize 允许对象在“垃圾回收”回收之前尝试释放资源并执行其他清理操作。 (继承自 Object。)
公共方法 GetHashCode 作为默认哈希函数。 (继承自 Object。)
公共方法 GetMonikerQualifier 以不同的方式对域类进行名称化:标准/限定符/密钥机制、自定义名字对象或元素 ID.如果使用标准/限定符/密钥机制序列化域类,则此方法将返回名字对象的限定符;如果域类使用名称化的其他方法,则此方法将返回空字符串。 (继承自 MoveableDecoratorHostShapeSerializerBase。)
公共方法 GetType 获取当前实例的 Type。 (继承自 Object。)
受保护的方法 MemberwiseClone 创建当前 Object 的浅表副本。 (继承自 Object。)
公共方法 Read 与 DecoratorHostShape 不同,MoveableDecoratorHostShape 需要序列化以保存位置信息。但是,由于特殊处理修饰器和 CDS 中的主机形状,因此通常生成的序列化将不起作用。因此我们简化此处生成的序列化程序,并在 ShapeElementSerializer.CustomReadElements () 处理序列化以代替。 (重写 MoveableDecoratorHostShapeSerializerBase.Read(SerializationContext, ModelElement, XmlReader)。)
受保护的方法 ReadAdditionalElementData 读取与该元素关联的任何其他元素数据 (继承自 MoveableDecoratorHostShapeSerializerBase。)
受保护的方法 ReadElements 此方法集对传入的元素内部嵌套的 XML 元素执行反序列化。 (继承自 MoveableDecoratorHostShapeSerializerBase。)
受保护的方法 ReadPropertiesFromAttributes 此方对序列化为 XML 特性的所有属性执行反序列化。 (继承自 DecoratorHostShapeSerializerBase。)
公共方法 ReadRootElement 从 XML 中反序列化目录模型元素 (继承自 DomainClassXmlSerializer。)
受保护的方法 ReadShapeElementChildElements 读取在 ShapeElement 上定义的子元素。 (继承自 ShapeElementSerializer。)
公共方法 Reset 重置序列化程序 (继承自 MoveableDecoratorHostShapeSerializerBase。)
公共方法 ToString 返回表示当前对象的字符串。 (继承自 Object。)
公共方法 TryCreateInstance 此方法基于读取器当前指向的标记创建 MoveableDecoratorHostShape 的正确实例。如果读取器被置于一个序列化的 MoveableDecoratorHostShape,则将在给定分区创建一个新的 MoveableDecoratorHostShape 实例,否则返回 NULL 。 (继承自 MoveableDecoratorHostShapeSerializerBase。)
公共方法 TryCreateMonikerInstance 该方法基于读取器当前指向的标记创建 MoveableDecoratorHostShape 的正确派生实例(包括 MoveableDecoratorHostShape 自身)的名字对象。 (继承自 MoveableDecoratorHostShapeSerializerBase。)
公共方法 Write(SerializationContext, ModelElement, XmlWriter) 将此序列化程序实例关联的模型元素实例序列化到 XML。 (继承自 DomainClassXmlSerializer。)
公共方法 Write(SerializationContext, ModelElement, XmlWriter, RootElementSettings) 与 DecoratorHostShape 不同,MoveableDecoratorHostShape 需要序列化以保存位置信息。但是,由于特殊处理修饰器和 CDS 中的主机形状,因此通常生成的序列化将不起作用。因此我们简化此处生成的序列化程序,并在 ShapeElementSerializer.CustomWriteElements () 处理序列化以代替。 (重写 MoveableDecoratorHostShapeSerializerBase.Write(SerializationContext, ModelElement, XmlWriter, RootElementSettings)。)
受保护的方法 WriteAdditionalElementData 写入与该元素关联的任何其他元素数据 (继承自 MoveableDecoratorHostShapeSerializerBase。)
受保护的方法 WriteElements 此方法进行序列化 1) 序列化为嵌套的 XML 元素的属性 2) 子模型元素序列化为 XML。 (继承自 MoveableDecoratorHostShapeSerializerBase。)
公共方法 WriteMoniker Public WriteMoniker() 方法,将一个名字化 MoveableDecoratorHostShape 实例写入 XML 中。 (继承自 MoveableDecoratorHostShapeSerializerBase。)
受保护的方法 WritePropertiesAsAttributes 写入需要序列化为 XML 特性的所有属性。 (继承自 DecoratorHostShapeSerializerBase。)
公共方法 WriteRootElement 将此序列化程序实例关联的根模型元素实例序列化到 XML。 (继承自 DomainClassXmlSerializer。)
受保护的方法 WriteShapeElementChildElements 写入在 ShapeElement 上定义的子元素。 (继承自 ShapeElementSerializer。)

页首

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。

请参阅

参考

Microsoft.VisualStudio.Modeling.Diagrams 命名空间