XmlLayoutBase ContentType Property | Apache log4net™ SDK Documentation

Gets the content type output by this layout.

Namespace: log4net.Layout
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

C#
VB
C++
F#
Copy

    public override string ContentType { get; }

    Public Overrides ReadOnly Property ContentType As String
    	Get

    public:
    virtual property String^ ContentType {
    	String^ get () override;
    }

    abstract ContentType : string with get
    override ContentType : string with get

#### Property Value

Type: String
As this is the XML layout, the value is always "text/xml".

#### Implements

ILayout
ContentType
Remarks

As this is the XML layout, the value is always "text/xml".

See Also

#### Reference

XmlLayoutBase Class
log4net.Layout Namespace