SerializationSectionGroup 类
定义
处理用于配置 DataContractSerializer 所执行的序列化的 XML 元素。Handles the XML elements used to configure serialization by the DataContractSerializer.
此 API 支持产品基础结构,不能在代码中直接使用。
public ref class SerializationSectionGroup sealed : System::Configuration::ConfigurationSectionGroup
public sealed class SerializationSectionGroup : System.Configuration.ConfigurationSectionGroup
type SerializationSectionGroup = class
inherit ConfigurationSectionGroup
Public NotInheritable Class SerializationSectionGroup
Inherits ConfigurationSectionGroup
- 继承
注解
此类用于处理 < dataContractSerializer > 组,其中包含 < dataContractSerializer > 元素,具体而言就是允许将类型添加到已知类型的集合。This class is used to handle the <dataContractSerializer> group, which contains the <dataContractSerializer> element, specifically, to allow the addition of types to the collection of known types. 有关数据协定已知类型的详细信息,请参阅 数据协定已知类型。For more information about data contract known types, see Data Contract Known Types.
有关使用元素添加到已知类型集合的示例,请参阅 < declaredTypes > 。For an example of using the element to add to the known types collection, see <declaredTypes>.
构造函数
| SerializationSectionGroup() |
此 API 支持产品基础结构,不能在代码中直接使用。 初始化 SerializationSectionGroup 类的新实例。Initializes a new instance of the SerializationSectionGroup class. |
属性
方法
| Equals(Object) |
确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object. (继承自 Object) |
| ForceDeclaration() |
强制声明此 ConfigurationSectionGroup 对象。Forces the declaration for this ConfigurationSectionGroup object. (继承自 ConfigurationSectionGroup) |
| ForceDeclaration(Boolean) |
强制声明此 ConfigurationSectionGroup 对象。Forces the declaration for this ConfigurationSectionGroup object. (继承自 ConfigurationSectionGroup) |
| GetHashCode() |
作为默认哈希函数。Serves as the default hash function. (继承自 Object) |
| GetSectionGroup(Configuration) |
此 API 支持产品基础结构,不能在代码中直接使用。 获取指定配置的序列化配置节。Gets the serialization configuration section for the specified configuration. |
| GetType() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
| MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
| ShouldSerializeSectionGroupInTargetVersion(FrameworkName) |
指示 ConfigurationSectionGroup 在为指定的 .NET Framework 目标版本序列化配置对象层次结构时,是否应序列化当前实例。Indicates whether the current ConfigurationSectionGroup instance should be serialized when the configuration object hierarchy is serialized for the specified target version of the .NET Framework. (继承自 ConfigurationSectionGroup) |
| ToString() |
返回表示当前对象的字符串。Returns a string that represents the current object. (继承自 Object) |