Share via


MediaType.IsSubsetOf(MediaType) Method

Definition

Determines whether the current MediaType is a subset of the setMediaType.

public:
 bool IsSubsetOf(Microsoft::AspNetCore::Mvc::Formatters::MediaType set);
public bool IsSubsetOf (Microsoft.AspNetCore.Mvc.Formatters.MediaType set);
member this.IsSubsetOf : Microsoft.AspNetCore.Mvc.Formatters.MediaType -> bool
Public Function IsSubsetOf (set As MediaType) As Boolean

Parameters

set
MediaType

The set MediaType.

Returns

true if this MediaType is a subset of set; otherwise false.

Applies to