Share via


MediaTypeOptions.AddBinary Method

Definition

Overloads

AddBinary(MediaTypeHeaderValue)

Adds a MediaTypeHeaderValue to be used for logging as binary.

AddBinary(String)

Adds a content to be used for logging as text.

AddBinary(MediaTypeHeaderValue)

Source:
MediaTypeOptions.cs

Adds a MediaTypeHeaderValue to be used for logging as binary.

public void AddBinary (Microsoft.Net.Http.Headers.MediaTypeHeaderValue mediaType);
member this.AddBinary : Microsoft.Net.Http.Headers.MediaTypeHeaderValue -> unit
Public Sub AddBinary (mediaType As MediaTypeHeaderValue)

Parameters

mediaType
MediaTypeHeaderValue

The MediaType to add.

Applies to

AddBinary(String)

Source:
MediaTypeOptions.cs

Adds a content to be used for logging as text.

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

Parameters

contentType
String

The content type to add.

Applies to