XdmWriterSettings.Version PropertyXdmWriterSettings.Version PropertyXdmWriterSettings::Version Property

Gets or sets the XML version to be used.

Syntax

Public Property Version As String
        Get
        Set(ByVal value As String)
public string Version { get; set; }
public:
property String^ Version {
    String^ get();
    void set(String^ value);
}
 

Property Value

Type: System.StringSystem.StringSystem::String^

The XML version to be used.

Remarks

This property corresponds to the version serialization parameter.

This parameter specifies either the version of XML (if MethodMethodMethod is set to XmlOutputMethodXmlOutputMethodXmlOutputMethod or XHtmlOutputMethodXHtmlOutputMethodXHtmlOutputMethod), the HTML version (if MethodMethodMethod is set to HtmlOutputMethodHtmlOutputMethodHtmlOutputMethod) or the version of the canonical XML specification (if MethodMethodMethod is set to CanonicalOutputMethodCanonicalOutputMethodCanonicalOutputMethod. This property is ignored if MethodMethodMethod is not set to any of the above values.

If the version is not supported (XML version is not 1.0 or 1.1, HTML version is not 4.0 or 4.01 or the Canonical XML version is not 1.0 then an SESU0013 error is raised if serialization is attempted.

If this property is set to null a null reference (Nothing in Visual Basic) nullptr then the version is assumed to be 4.01 if MethodMethodMethod is set to HtmlOutputMethodHtmlOutputMethodHtmlOutputMethod, and 1.0 otherwise. By default this property is set to null a null reference (Nothing in Visual Basic) nullptr.