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

适用于