MediaTypeOptions.AddText Method

Definition

Overloads

AddText(String)

Adds a contentType to be used for logging as text.

AddText(String, Encoding)

Adds a contentType to be used for logging as text.

AddText(String)

Adds a contentType to be used for logging as text.

public void AddText (string contentType);
member this.AddText : string -> unit
Public Sub AddText (contentType As String)

Parameters

contentType
String

The content type to add.

Remarks

If charset is not specified in the contentType, the encoding will default to UTF-8.

Applies to

AddText(String, Encoding)

Adds a contentType to be used for logging as text.

public void AddText (string contentType, System.Text.Encoding encoding);
member this.AddText : string * System.Text.Encoding -> unit
Public Sub AddText (contentType As String, encoding As Encoding)

Parameters

contentType
String

The content type to add.

encoding
Encoding

The encoding to use.

Applies to