MediaTypeHeaderValue.SubTypeWithoutSuffix Property

Definition

Gets subtype of the MediaTypeHeaderValue, excluding any structured syntax suffix. Returns Empty if there is no subtype without suffix.

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

Property Value

Examples

For the media type "application/vnd.example+json", the property gives the value "vnd.example".

Applies to