BinaryData.WithMediaType(String) Method

Definition

Creates a BinaryData instance by wrapping the same data and changing the MediaType to mediaType.

public:
 BinaryData ^ WithMediaType(System::String ^ mediaType);
public BinaryData WithMediaType(string? mediaType);
member this.WithMediaType : string -> BinaryData
Public Function WithMediaType (mediaType As String) As BinaryData

Parameters

mediaType
String

The MIME type of this data, for example, Octet.

Returns

A wrapper over the same data with specified MediaType.

Applies to

See also