XdmWriterSettings.IncludeContentType PropertyXdmWriterSettings.IncludeContentType PropertyXdmWriterSettings::IncludeContentType Property

Gets or sets a value indicating whether a meta tag should be added to indicate content type.

Syntax

Public Property IncludeContentType As Boolean
        Get
        Set(ByVal value As Boolean)
public bool IncludeContentType { get; set; }
public:
property bool IncludeContentType {
    bool get();
    void set(bool value);
}
 

Property Value

Type: System.BooleanSystem.BooleanSystem::Boolean

trueTruetrue if a meta tag should be added; otherwise falseFalsefalse.

Remarks

This property corresponds to the include-content-type serialization parameter.

If this property is set to trueTruetrue, then in html and xhtml output methods a meta element is added as the first child of the head element specifying the content type from the media-type property, and with the encoding actually used.

This property is ignored when MethodMethodMethod is not set to HtmlOutputMethodHtmlOutputMethodHtmlOutputMethod or XHtmlOutputMethodXHtmlOutputMethodXHtmlOutputMethod.

By default this property is set to falseFalsefalse