MediaTypeHeaderValue.IsSubsetOf(MediaTypeHeaderValue) Method

Definition

Gets a value indicating whether this MediaTypeHeaderValue is a subset of otherMediaType. A "subset" is defined as the same or a more specific media type according to the precedence described in https://www.ietf.org/rfc/rfc2068.txt section 14.1, Accept.

public:
 bool IsSubsetOf(Microsoft::Net::Http::Headers::MediaTypeHeaderValue ^ otherMediaType);
public bool IsSubsetOf (Microsoft.Net.Http.Headers.MediaTypeHeaderValue otherMediaType);
member this.IsSubsetOf : Microsoft.Net.Http.Headers.MediaTypeHeaderValue -> bool
Public Function IsSubsetOf (otherMediaType As MediaTypeHeaderValue) As Boolean

Parameters

otherMediaType
MediaTypeHeaderValue

The MediaTypeHeaderValue to compare.

Returns

A value indicating whether this MediaTypeHeaderValue is a subset of otherMediaType.

Remarks

For example "multipart/mixed; boundary=1234" is a subset of "multipart/mixed; boundary=1234", "multipart/mixed", "multipart/*", and "*/*" but not "multipart/mixed; boundary=2345" or "multipart/message; boundary=1234".

Applies to