Share via


MediaType.Type Property

Definition

Gets the type of the MediaType.

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

Property Value

Examples

For the media type "application/json", this property gives the value "application".

Applies to