System.ComponentModel.Design.Serialization 命名空间
提供在设计时支持对序列化进行自定义和控制的类型。 Provides types that support customization and control of serialization at design time.
类
| BasicDesignerLoader |
提供 IDesignerLoaderService 接口的实现。Provides an implementation of the IDesignerLoaderService interface. |
| CodeDomComponentSerializationService |
将一组组件序列化到一个序化列存储区中。Serializes a set of components into a serialization store. |
| CodeDomDesignerLoader |
提供用于实现基于 CodeDOM 的设计器加载程序的基类。Provides the base class for implementing a CodeDOM-based designer loader. |
| CodeDomLocalizationProvider |
提供 CodeDOM 资源序列化服务。Provides CodeDOM resource serialization services. 此类不能被继承。This class cannot be inherited. |
| CodeDomSerializer |
将对象图序列化为一系列 CodeDOM 语句。Serializes an object graph to a series of CodeDOM statements. 此类提供序列化程序的抽象基类。This class provides an abstract base class for a serializer. |
| CodeDomSerializerBase |
为 CodeDomSerializer 类提供基类。Provides a base class for CodeDomSerializer classes. |
| CodeDomSerializerException |
当行号信息可用于序列化错误时引发的异常。The exception that is thrown when line number information is available for a serialization error. |
| CollectionCodeDomSerializer |
序列化集合。Serializes collections. |
| ComponentSerializationService |
提供用于将一组组件或可序列化的对象序列化到序列化存储区的基类。Provides the base class for serializing a set of components or serializable objects into a serialization store. |
| ContextStack |
提供堆栈对象,序列化程序可使用该对象向嵌套的序列化程序提供信息。Provides a stack object that can be used by a serializer to make information available to nested serializers. |
| DefaultSerializationProviderAttribute |
DefaultSerializationProviderAttribute 特性被放置在序列化程序上,以指示要用作该类型序列化程序的默认提供程序的类。The DefaultSerializationProviderAttribute attribute is placed on a serializer to indicate the class to use as a default provider of that type of serializer. |
| DesignerLoader |
提供可用于实现自定义设计器加载程序的基本设计器加载程序接口。Provides a basic designer loader interface that can be used to implement a custom designer loader. |
| DesignerSerializationManager |
提供 IDesignerSerializationManager 接口的实现。Provides an implementation of the IDesignerSerializationManager interface. |
| DesignerSerializerAttribute |
指示某个序列化管理器的序列化程序,它将用于序列化此特性所应用到的类型的值。Indicates a serializer for the serialization manager to use to serialize the values of the type this attribute is applied to. 此类不能被继承。This class cannot be inherited. |
| ExpressionContext |
提供一种在序列化程序之间传递上下文状态的方法。Provides a means of passing context state among serializers. 此类不能被继承。This class cannot be inherited. |
| InstanceDescriptor |
提供创建对象的实例所需的信息。Provides the information necessary to create an instance of an object. 此类不能被继承。This class cannot be inherited. |
| MemberCodeDomSerializer |
提供用于序列化对象图内的反射基元的基类。Provides the base class for serializing a reflection primitive within the object graph. |
| MemberRelationshipService |
提供用于将一个成员与另一个成员相关的基类。Provides the base class for relating one member to another. |
| ObjectStatementCollection |
保存一个由 StatementContext 提供的语句表。Holds a table of statements that is offered by the StatementContext. 此类不能被继承。This class cannot be inherited. |
| ResolveNameEventArgs |
为 ResolveName 事件提供数据。Provides data for the ResolveName event. |
| RootContext |
CodeDomSerializer 可添加根上下文以提供根对象的定义。A CodeDomSerializer adds a root context to provide a definition of the root object. 此类不能被继承。This class cannot be inherited. |
| RootDesignerSerializerAttribute |
指示用于根设计器对象的基序列化程序。Indicates the base serializer to use for a root designer object. 此类不能被继承。This class cannot be inherited. |
| SerializationStore |
提供用于存储 ComponentSerializationService 序列化数据的基类。Provides the base class for storing serialization data for the ComponentSerializationService. |
| SerializeAbsoluteContext |
指定序列化程序应处理默认值。Specifies that serializers should handle default values. 此类不能被继承。This class cannot be inherited. |
| StatementContext |
提供可将语句序列化到的位置。Provides a location into which statements can be serialized. 此类不能被继承。This class cannot be inherited. |
| TypeCodeDomSerializer |
将对象序列化为新类型。Serializes an object to a new type. |
结构
| MemberRelationship |
表示某个对象和某个成员之间的单一关系。Represents a single relationship between an object and a member. |
接口
| ICodeDomDesignerReload |
提供可用于优化设计器的重新加载的接口。Provides an interface that can be used to optimize the reloading of a designer. |
| IDesignerLoaderHost |
提供一个接口,该接口可扩展设计器宿主以支持从序列化状态加载。Provides an interface that can extend a designer host to support loading from a serialized state. |
| IDesignerLoaderHost2 |
提供扩展 IDesignerLoaderHost 的接口,以指定在加载设计文档时是否允许发生错误。Provides an interface that extends IDesignerLoaderHost to specify whether errors are tolerated while loading a design document. |
| IDesignerLoaderService |
提供一个接口,该接口可以扩展设计器加载程序以支持外部组件的异步加载。Provides an interface that can extend a designer loader to support asynchronous loading of external components. |
| IDesignerSerializationManager |
提供可以管理设计时序列化的接口。Provides an interface that can manage design-time serialization. |
| IDesignerSerializationProvider |
提供一个支持访问序列化程序的接口。Provides an interface that enables access to a serializer. |
| IDesignerSerializationService |
提供一个可调用序列化和反序列化的接口。Provides an interface that can invoke serialization and deserialization. |
| INameCreationService |
提供可以生成对象的唯一名称的服务。Provides a service that can generate unique names for objects. |
枚举
| BasicDesignerLoader.ReloadOptions |
定义 Reload(BasicDesignerLoader+ReloadOptions) 方法的行为。Defines the behavior of the Reload(BasicDesignerLoader+ReloadOptions) method. 可以使用按位 |
| CodeDomLocalizationModel |
确定 CodeDom 资源适配器要使用的本地化模型。Determines the localization model to be used by the CodeDom resource adapter. |
委托
| ResolveNameEventHandler |
表示处理序列化管理器的 ResolveName 事件的方法。Represents the method that handles the ResolveName event of a serialization manager. |
注解
此命名空间中的类可分为以下几类:The classes in this namespace can be divided into the following categories:
序列化属性,可用于指示要用于特定类型的序列化程序: DesignerSerializerAttribute ,指示要用于特定类型的序列化程序; 和 RootDesignerSerializerAttribute ,指示要用于根设计器的基序列化程序。Serialization attributes that can be used to indicate the serializer to use for a specific type: DesignerSerializerAttribute, to indicate the serializer to use for a particular type; and RootDesignerSerializerAttribute, to indicate the base serializer to use for the root designer.
设计器可用于自定义序列化的类: IDesignerLoaderHost 、用于从序列化状态加载设计器文档; 以及 IDesignerLoaderService 在涉及外部组件和异步加载时加载设计器文档。Classes that a designer can implement to customize serialization: IDesignerLoaderHost, for loading a designer document from a serialized state; and IDesignerLoaderService, for loading a designer document when external components and asynchronous loading are involved.
设计器可用于管理序列化过程的接口: IDesignerSerializationManager ,用于注册或检索自定义序列化 IDesignerSerializationProvider 程序; 以及使序列化程序可用于 IDesignerSerializationManager ; 和 IDesignerSerializationService (提供调用序列化和反序列化的方法)。Interfaces that a designer can use to manage the serialization process: IDesignerSerializationManager, to register or retrieve custom serializers; IDesignerSerializationProvider, to make a serializer available to an IDesignerSerializationManager; and IDesignerSerializationService, which provides methods to invoke serialization and deserialization.
一个接口,可以实现该接口来自定义设计器的加载过程: DesignerLoader 。An interface that can be implemented to customize the loading process of a designer: DesignerLoader.
一个接口,可用于优化设计器的重新加载: ICodeDomDesignerReload 。An interface that can be used to optimize the reloading of a designer: ICodeDomDesignerReload.
其他帮助程序类: INameCreationService 、用于为对象生成唯一名称的接口; ContextStack 、用于与序列化程序共享序列化上下文信息的数据结构; 以及 InstanceDescriptor 可以描述可序列化对象的对象。Other helper classes: INameCreationService, an interface for generating unique names for objects; ContextStack, a data structure useful for sharing serialization context information with serializers; and InstanceDescriptor, an object that can describe a serializable object.