MediaTypeOptions.AddText Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)
- Source:
- MediaTypeOptions.cs
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)
- Source:
- MediaTypeOptions.cs
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.