MediaTypeOptions.AddBinary 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
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.