Edit

Share via


Call.IsSupportedMediaType(String) Method

Definition

Determines whether the given media type is present in the list of supported media types.

public:
 virtual bool IsSupportedMediaType(System::String ^ mediaType);
public virtual bool IsSupportedMediaType (string mediaType);
abstract member IsSupportedMediaType : string -> bool
override this.IsSupportedMediaType : string -> bool
Public Overridable Function IsSupportedMediaType (mediaType As String) As Boolean

Parameters

mediaType
String

Type of the media.

Returns

true if it is the default media or if it is the specified media type; otherwise, false.

Applies to