共用方式為


MediaTypeHeaderValue.SubType 屬性

定義

取得 的 MediaTypeHeaderValue 子型別。

public:
 property System::String ^ SubType { System::String ^ get(); };
public:
 property Microsoft::Extensions::Primitives::StringSegment SubType { Microsoft::Extensions::Primitives::StringSegment get(); };
public string SubType { get; }
public Microsoft.Extensions.Primitives.StringSegment SubType { get; }
member this.SubType : string
member this.SubType : Microsoft.Extensions.Primitives.StringSegment
Public ReadOnly Property SubType As String
Public ReadOnly Property SubType As StringSegment

屬性值

範例

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

備註

如需子類型的詳細資訊,請參閱 https://tools.ietf.org/html/rfc6838#section-4.2

適用於