XdmWriterSettings ClassXdmWriterSettings ClassXdmWriterSettings Class

Describes the settings of an XdmWriterXdmWriterXdmWriter.

Inheritance Hierarchy

Syntax

Public NotInheritable Class XdmWriterSettings
public sealed class XdmWriterSettings
public:
ref class XdmWriterSettings sealed
 
The XdmWriterSettingsXdmWriterSettingsXdmWriterSettings type exposes the following members.

Constructors

 ConstructorDescription
Public methodXdmWriterSettings ()XdmWriterSettings ()XdmWriterSettings () Initializes a new instance of the XdmWriterSettingsXdmWriterSettingsXdmWriterSettings class with all parameters taking default values for the XML output method.
Public methodXdmWriterSettings (XmlQualifiedName)XdmWriterSettings (XmlQualifiedName)XdmWriterSettings (XmlQualifiedName^) Initializes a new instance of the XdmWriterSettingsXdmWriterSettingsXdmWriterSettings class with all parameters taking default values for the specified output method.
Public methodXdmWriterSettings (XdmWriterSettings)XdmWriterSettings (XdmWriterSettings)XdmWriterSettings (XdmWriterSettings^) Initializes a new instance of the XdmWriterSettingsXdmWriterSettingsXdmWriterSettings class from another instance.

Top

Properties

 PropertyDescription
Public propertystaticAutoOutputMethodAutoOutputMethodAutoOutputMethod Gets the qualified name of the auto output method.
Public propertyByteOrderMarkByteOrderMarkByteOrderMark Gets or sets a value indicating whether the output should be preceded by a byte order mark.
Public propertystaticCanonicalOutputMethodCanonicalOutputMethodCanonicalOutputMethod Gets the qualified name of the canonical output method.
Public propertyCDataSectionElementsCDataSectionElementsCDataSectionElements Gets a collection of element names whose contents must be output as CDATA sections.
Public propertyCharacterMappingCharacterMappingCharacterMapping Gets the mapping of characters to string values.
Public propertyCharacterReferenceStyleCharacterReferenceStyleCharacterReferenceStyle Gets or sets the way in which character references should be serialized.
Public propertyCheckNamespacesCheckNamespacesCheckNamespaces Gets or sets the checking that is performed for namespace URI values.
Public propertyCloseOutputCloseOutputCloseOutput Gets or sets a value indicating whether the XmlWriterXmlWriterXmlWriter should also close the underlying StreamStreamStream or TextWriterTextWriterTextWriter when the CloseCloseClose method is called.
Public propertyConformanceLevelConformanceLevelConformanceLevel Gets or sets the level of conformance that the serialized document must conform with.
Public propertyDoctypePublicDoctypePublicDoctypePublic Gets or sets the PUBLIC document type.
Public propertyDoctypeSystemDoctypeSystemDoctypeSystem Gets or sets the SYSTEM document type.
Public propertyEncodingEncodingEncoding Gets or sets the character encoding to be used.
Public propertyEscapeUriAttributesEscapeUriAttributesEscapeUriAttributes Gets or sets a value indicating whether URI escaping is enabled.
Public propertystaticHtmlOutputMethodHtmlOutputMethodHtmlOutputMethod Gets the qualified name of the HTML output method.
Public propertyIncludeContentTypeIncludeContentTypeIncludeContentType Gets or sets a value indicating whether a meta tag should be added to indicate content type.
Public propertyIndentIndentIndent Gets or sets a value indicating whether output should be indented.
Public propertyIndentationCharactersIndentationCharactersIndentationCharacters Gets or sets the character string used for indentation.
Public propertyMediaTypeMediaTypeMediaType Gets or sets a string specifying the media type (MIME content type) of the output.
Public propertyMethodMethodMethod Gets or sets the output method.
Public propertyNewLineCharsNewLineCharsNewLineChars Gets or sets the character string to use for line breaks.
Public propertyNormalizationFormNormalizationFormNormalizationForm Gets or sets the normalization form.
Public propertyOmitXmlDeclarationOmitXmlDeclarationOmitXmlDeclaration Gets or sets a value indicating whether the XML declaration should be omitted in the output.
Public propertyStandaloneStandaloneStandalone Gets or sets a value indicating whether the XML declaration must contain a standalone document declaration.

This property corresponds to the standalone serialization parameter.

If this property has the value YesYesYes or the value NoNoNo, the XML declaration includes a standalone document declaration with the value specified by this property. If the standalone parameter has the value OmitOmitOmit, the XML declaration will not include a standalone document declaration.

If MethodMethodMethod is not set to XmlOutputMethodXmlOutputMethodXmlOutputMethod or XHtmlOutputMethodXHtmlOutputMethodXHtmlOutputMethod then this property is ignored.

If this property is not set to OmitOmitOmit, OmitXmlDeclarationOmitXmlDeclarationOmitXmlDeclaration is set to trueTruetrue and MethodMethodMethod is set to XmlOutputMethodXmlOutputMethodXmlOutputMethod or XHtmlOutputMethodXHtmlOutputMethodXHtmlOutputMethod then a SEPM0009 XdmExceptionXdmExceptionXdmException is thrown when serialization is attempted.

By default this property is set to OmitOmitOmit.

Public propertySuppressIndentationSuppressIndentationSuppressIndentation Gets a collection of element names for which indentation must be suppressed.
Public propertystaticTextOutputMethodTextOutputMethodTextOutputMethod Gets the qualified name of the text output method.
Public propertyUndeclarePrefixesUndeclarePrefixesUndeclarePrefixes Gets or sets a value indicating whether serializer should undeclare namespaces.
Public propertyVersionVersionVersion Gets or sets the XML version to be used.
Public propertystaticXHtmlOutputMethodXHtmlOutputMethodXHtmlOutputMethod Gets the qualified name of the XHTML output method.
Public propertystaticXmlOutputMethodXmlOutputMethodXmlOutputMethod Gets the qualified name of the XML output method.

Top

Methods

 MethodDescription
Public methodstaticDefaultMediaTypeDefaultMediaTypeDefaultMediaType Returns the default media type for the specified output method with name specified by methodName.
Public methodObject.EqualsObject.EqualsObject::Equals Determines whether the specified objectObjectobject is equal to the current objectObjectobject. (Inherited from System.ObjectSystem.ObjectSystem::Object)
Protected methodObject.FinalizeObject.FinalizeObject::Finalize Allows an objectObjectobject to attempt to free resources and perform other cleanup operations before the objectObjectobject is reclaimed by garbage collection. (Inherited from System.ObjectSystem.ObjectSystem::Object)
Public methodGetEncodingGetEncodingGetEncoding Returns an EncodingEncodingEncoding instance as described by the EncodingEncodingEncoding and ByteOrderMarkByteOrderMarkByteOrderMark properties of this instance.
Public methodObject.GetHashCodeObject.GetHashCodeObject::GetHashCode Serves as a hash function for a particular type. (Inherited from System.ObjectSystem.ObjectSystem::Object)
Public methodObject.GetTypeObject.GetTypeObject::GetType Gets the TypeTypeType of the current instance. (Inherited from System.ObjectSystem.ObjectSystem::Object)
Protected methodObject.MemberwiseCloneObject.MemberwiseCloneObject::MemberwiseClone Creates a shallow copy of the current objectObjectobject. (Inherited from System.ObjectSystem.ObjectSystem::Object)
Public methodParameterDocument (Stream)ParameterDocument (Stream)ParameterDocument (Stream^) Returns a new XdmWriterSettingsXdmWriterSettingsXdmWriterSettings instance with serialization parameters read from the specified StreamStreamStream.
Public methodParameterDocument (string)ParameterDocument (String)ParameterDocument (String^) Returns a new XdmWriterSettingsXdmWriterSettingsXdmWriterSettings instance with serialization parameters read from the specified XmlReaderXmlReaderXmlReader.
Public methodParameterDocument (XmlReader)ParameterDocument (XmlReader)ParameterDocument (XmlReader^) Returns a new XdmWriterSettingsXdmWriterSettingsXdmWriterSettings instance with serialization parameters read from the specified XmlReaderXmlReaderXmlReader.
Public methodParameterDocument (IXPathNavigable)ParameterDocument (IXPathNavigable)ParameterDocument (IXPathNavigable^) Returns a new XdmWriterSettingsXdmWriterSettingsXdmWriterSettings instance with serialization parameters read from the specified XmlReaderXmlReaderXmlReader.
Public methodSetParameter (string, string)SetParameter (String, String)SetParameter (String^, String^) Attempts to set the specified serialization parameter.
Public methodSetParameter (XmlQualifiedName, string)SetParameter (XmlQualifiedName, String)SetParameter (XmlQualifiedName^, String^) Attempts to set the specified serialization parameter.
Public methodSetParameter (XmlQualifiedName, string, IXmlNamespaceResolver)SetParameter (XmlQualifiedName, String, IXmlNamespaceResolver)SetParameter (XmlQualifiedName^, String^, IXmlNamespaceResolver^) Attempts to set the specified serialization parameter.
Public methodObject.ToStringObject.ToStringObject::ToString Returns a stringStringString that represents the current objectObjectobject. (Inherited from System.ObjectSystem.ObjectSystem::Object)

Top