共用方式為


MediaTypeHeaderValue.SubTypeWithoutSuffix 屬性

定義

取得 的 MediaTypeHeaderValue 子類型,不包括任何結構化語法尾碼。 如果沒有後置詞的子類型,則傳 Empty 回 。

public:
 property Microsoft::Extensions::Primitives::StringSegment SubTypeWithoutSuffix { Microsoft::Extensions::Primitives::StringSegment get(); };
public Microsoft.Extensions.Primitives.StringSegment SubTypeWithoutSuffix { get; }
member this.SubTypeWithoutSuffix : Microsoft.Extensions.Primitives.StringSegment
Public ReadOnly Property SubTypeWithoutSuffix As StringSegment

屬性值

範例

針對媒體類型 "application/vnd.example+json" ,屬性會提供 值 "vnd.example"

適用於