Edit

Share via


BinaryData.WithMediaType(String) Method

Definition

Creates a BinaryData instance by wrapping the same data and changed MediaType to <see pref="mediaType"></see> value.

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

Returns

A wrapper over the same data with specified MediaType.

Applies to

See also