MediaTypeHeaderValue.SubTypeWithoutSuffix Propriété

Définition

Obtient le sous-type du , à l’exclusion MediaTypeHeaderValuede tout suffixe de syntaxe structurée. Retourne Empty s’il n’existe aucun sous-type sans suffixe.

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

Valeur de propriété

Exemples

Pour le type "application/vnd.example+json"de média , la propriété donne la valeur "vnd.example".

S’applique à