Partilhar via


MediaTypeHeaderValue.Type Propriedade

Definição

Obtém o tipo do MediaTypeHeaderValue.

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

Valor da propriedade

Exemplos

Para o tipo "application/json"de mídia , a propriedade fornece o valor "application".

Comentários

Consulte https://tools.ietf.org/html/rfc6838#section-4.2 para obter mais detalhes sobre o tipo.

Aplica-se a