次の方法で共有


MediaTypeHeaderValue.MatchesMediaType(StringSegment) メソッド

定義

が型/subType の観点からこのMediaTypeHeaderValueサブセットであるかどうかをotherMediaType示す値を取得します。 「サブセット」は、セクション 14.1「Accept」で https://www.ietf.org/rfc/rfc2068.txt 説明されている優先順位に従って、同じまたはより具体的なメディアタイプとして定義されます。

public bool MatchesMediaType (Microsoft.Extensions.Primitives.StringSegment otherMediaType);
member this.MatchesMediaType : Microsoft.Extensions.Primitives.StringSegment -> bool
Public Function MatchesMediaType (otherMediaType As StringSegment) As Boolean

パラメーター

otherMediaType
StringSegment

比較対象の StringSegment

戻り値

がこの MediaTypeHeaderValueのサブセットであるかどうかをotherMediaType示す値。

注釈

たとえば、"multipart/mixed" は"multipart/mixed"、"multipart/*"、"*/*" のサブセットですが、"multipart/message" のサブセットではありません。

適用対象