MediaTypeHeaderValue.SubTypeWithoutSuffix Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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"
.