Compartilhar via


RootElementSettings Class

Definition

Similar to System.Xml.XmlWriterSettings, this class stores settings that need to be passed to a serializer when serializing a root element. Root element has additional information like schema target namespace, versions, etc., so additional information may be needed.

public ref class RootElementSettings sealed
public sealed class RootElementSettings
type RootElementSettings = class
Public NotInheritable Class RootElementSettings
Inheritance
RootElementSettings

Constructors

RootElementSettings()

Constructor

Properties

Item[String]

Gets and Sets additional properties. The default generated serialization code doesn't use any additional properties. This is designer for customization code to pass additional information, if necessary. On get, the given setting name is compared by ordinal, and null is returned if the given setting name doesn't match any stored setting value. On set, if there's an existing setting with the same name (compared by ordinal), the new value will replace the old one with no error. The setting name has to be non-empty.

SchemaTargetNamespace

Stores schema target namespace on the root element.

Version

Stores version on the root element.

Applies to