Udostępnij za pośrednictwem


OutputFormatterCanWriteContext.ContentType Właściwość

Definicja

Pobiera lub ustawia typ zawartości do zapisu w odpowiedzi.

public:
 virtual property Microsoft::Extensions::Primitives::StringSegment ContentType { Microsoft::Extensions::Primitives::StringSegment get(); void set(Microsoft::Extensions::Primitives::StringSegment value); };
public virtual Microsoft.Extensions.Primitives.StringSegment ContentType { get; set; }
member this.ContentType : Microsoft.Extensions.Primitives.StringSegment with get, set
Public Overridable Property ContentType As StringSegment

Wartość właściwości

Uwagi

Element IOutputFormatter może ustawić tę wartość, gdy jest wywoływana jej CanWriteResult(OutputFormatterCanWriteContext) metoda, i oczekiwać wyświetlenia tej samej wartości podanej w WriteAsync(OutputFormatterWriteContext)

Dotyczy