WorkflowMarkupSerializationManager 类

定义

管理工作流的与可扩展应用程序标记语言 (XAML) 之间的设计时序列化。Manages design-time serialization to and from extensible Application Markup Language (XAML) for workflows.

public ref class WorkflowMarkupSerializationManager : IServiceProvider, System::ComponentModel::Design::Serialization::IDesignerSerializationManager
public class WorkflowMarkupSerializationManager : IServiceProvider, System.ComponentModel.Design.Serialization.IDesignerSerializationManager
type WorkflowMarkupSerializationManager = class
    interface IDesignerSerializationManager
    interface IServiceProvider
Public Class WorkflowMarkupSerializationManager
Implements IDesignerSerializationManager, IServiceProvider
继承
WorkflowMarkupSerializationManager
实现

注解

备注

本材料讨论的类型和命名空间已废弃不用。This material discusses types and namespaces that are obsolete. 有关详细信息,请参阅 Windows Workflow Foundation 4.5 中弃用的类型For more information, see Deprecated Types in Windows Workflow Foundation 4.5.

工作流或活动设计器可以使用 WorkflowMarkupSerializationManager 来访问对于管理设计时序列化过程很有用的服务。A workflow or activity designer can use WorkflowMarkupSerializationManager to access services useful to managing design-time serialization processes. 例如,WorkflowMarkupSerializationManager 可用于创建对象、查找类型、标识对象以及自定义特定类型的序列化。For example, WorkflowMarkupSerializationManager can be used to create objects, look up types, identify objects, and customize the serialization of particular types.

构造函数

WorkflowMarkupSerializationManager(IDesignerSerializationManager)

使用指定的 WorkflowMarkupSerializationManager 初始化 IDesignerSerializationManager 类的新实例。Initializes a new instance of the WorkflowMarkupSerializationManager class by using the specified IDesignerSerializationManager.

属性

Context

获取基于堆栈的、用户定义的存储区域,该区域对于序列化程序之间的通信十分有用。Gets a stack-based, user-defined storage area that is useful for communication between serializers.

LocalAssembly

获取或设置与当前序列化程序关联的程序集。Gets or sets the assembly that is associated with the current serializer.

SerializationManager

获取或设置与当前序列化程序一起使用的序列化管理器。Gets or sets the serialization manager to use with the current serializer.

方法

AddSerializationProvider(IDesignerSerializationProvider)

向序列化管理器添加指定的序列化提供程序。Adds the specified serialization provider to the serialization manager.

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetSerializer(Type, Type)

为指定类型的对象返回指定类型的序列化程序。Returns a serializer of the specified type for an object of the specified type.

GetService(Type)

返回指定类型的服务对象。Returns a service object of the specified type.

GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
GetType(String)

返回指定名称的类型。Returns a type of the specified name.

GetType(XmlQualifiedName)

返回与指定 XML 限定名关联的类型。Returns that type associated with the specified XML qualified name.

GetXmlQualifiedName(Type, String)

返回与指定类型关联的 XML 限定名。Returns the XML-qualified name associated with the specified type.

MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
RemoveSerializationProvider(IDesignerSerializationProvider)

WorkflowMarkupSerializationManager 移除自定义的序列化提供程序。Removes a custom serialization provider from the WorkflowMarkupSerializationManager.

ReportError(Object)

报告序列化中的错误。Reports an error in serialization.

ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

显式接口实现

IDesignerSerializationManager.CreateInstance(Type, ICollection, String, Boolean)

创建指定类型的实例并将其添加到已命名实例的集合中。Creates an instance of the specified type and adds it to a collection of named instances.

IDesignerSerializationManager.GetInstance(String)

返回具有指定名称的已创建对象的实例。Returns an instance of a created object of the specified name.

IDesignerSerializationManager.GetName(Object)

返回指定对象的名称。Returns the name of the specified object.

IDesignerSerializationManager.Properties

获取可通过可用序列化程序进行序列化的属性的集合。Gets a collection of properties that can be serialized with available serializers.

IDesignerSerializationManager.ResolveName

IDesignerSerializationManager.GetName(Object) 无法在序列化管理器的名称表中找到指定名称时发生。Occurs when IDesignerSerializationManager.GetName(Object) cannot locate the specified name in the serialization manager's name table.

IDesignerSerializationManager.SerializationComplete

在序列化完成时发生。Occurs when serialization is complete.

IDesignerSerializationManager.SetName(Object, String)

设置指定的现有对象的名称。Sets the name of the specified existing object.

适用于