共用方式為


MediaTypeHeaderValue.Type 屬性

定義

取得 MediaTypeHeaderValue 的類型。

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

屬性值

範例

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

備註

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

適用於