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
继承
SerializationSectionGroup

注解

此类用于处理 < 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.

属性

DataContractSerializer

此 API 支持产品基础结构,不能在代码中直接使用。

获取用于设置已知类型集合的 DataContractSerializerSectionGets the DataContractSerializerSection used to set up the known types collection.

IsDeclarationRequired

获取一个值,指示是否需要声明此 ConfigurationSectionGroup 对象。Gets a value that indicates whether this ConfigurationSectionGroup object declaration is required.

(继承自 ConfigurationSectionGroup)
IsDeclared

获取一个值,指示是否已声明此 ConfigurationSectionGroup 对象。Gets a value that indicates whether this ConfigurationSectionGroup object is declared.

(继承自 ConfigurationSectionGroup)
Name

获取此 ConfigurationSectionGroup 对象的名称属性。Gets the name property of this ConfigurationSectionGroup object.

(继承自 ConfigurationSectionGroup)
NetDataContractSerializer

此 API 支持产品基础结构,不能在代码中直接使用。

获取用于设置已知类型集合的 NetDataContractSerializerSectionGets the NetDataContractSerializerSection used to set up the known types collection.

SectionGroupName

获取与此 ConfigurationSectionGroup 关联的节组名称。Gets the section group name associated with this ConfigurationSectionGroup.

(继承自 ConfigurationSectionGroup)
SectionGroups

获取一个 ConfigurationSectionGroupCollection 对象,其中包含作为此 ConfigurationSectionGroup 对象的子对象的所有 ConfigurationSectionGroup 对象。Gets a ConfigurationSectionGroupCollection object that contains all the ConfigurationSectionGroup objects that are children of this ConfigurationSectionGroup object.

(继承自 ConfigurationSectionGroup)
Sections

获取一个 ConfigurationSectionCollection 对象,其中包含此 ConfigurationSection 对象中的所有 ConfigurationSectionGroup 对象。Gets a ConfigurationSectionCollection object that contains all of ConfigurationSection objects within this ConfigurationSectionGroup object.

(继承自 ConfigurationSectionGroup)
Type

获取或设置此 ConfigurationSectionGroup 对象的类型。Gets or sets the type for this ConfigurationSectionGroup object.

(继承自 ConfigurationSectionGroup)

方法

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()

获取当前实例的 TypeGets 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)

适用于