MediaTypeHeaderValue.SubType 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 the subtype of the MediaTypeHeaderValue.
public:
property System::String ^ SubType { System::String ^ get(); };
public:
property Microsoft::Extensions::Primitives::StringSegment SubType { Microsoft::Extensions::Primitives::StringSegment get(); };
public string SubType { get; }
public Microsoft.Extensions.Primitives.StringSegment SubType { get; }
member this.SubType : string
member this.SubType : Microsoft.Extensions.Primitives.StringSegment
Public ReadOnly Property SubType As String
Public ReadOnly Property SubType As StringSegment
Property Value
Examples
For the media type "application/vnd.example+json"
, the property gives the value
"vnd.example+json"
.
Remarks
See https://tools.ietf.org/html/rfc6838#section-4.2 for more details on the subtype.