MediaTypeHeaderValue.MatchesMediaType(StringSegment) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
が型/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" のサブセットではありません。