XdmSerializationSettings.IncludeContentType PropertyXdmSerializationSettings.IncludeContentType PropertyXdmSerializationSettings::IncludeContentType Property

Gets 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 include-content-type is set to yes, 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. In Text and XML output modes, this parameter is ignored. By default, this is set to no.