共用方式為


DecoratorHostShapeSerializer.Write 方法 (SerializationContext, ModelElement, XmlWriter, RootElementSettings)

DecoratorHostShape 則不會序列化。

命名空間:  Microsoft.VisualStudio.Modeling.Diagrams
組件:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0 (在 Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll 中)

語法

'宣告
Public Overrides Sub Write ( _
    serializationContext As SerializationContext, _
    element As ModelElement, _
    writer As XmlWriter, _
    rootElementSettings As RootElementSettings _
)
public override void Write(
    SerializationContext serializationContext,
    ModelElement element,
    XmlWriter writer,
    RootElementSettings rootElementSettings
)

參數

.NET Framework 安全性

請參閱

參考

DecoratorHostShapeSerializer 類別

Write 多載

Microsoft.VisualStudio.Modeling.Diagrams 命名空間