HttpLoggingAttribute Klasse

Definition

Metadaten, die endpunktspezifische Einstellungen für die HttpLogging-Middleware bereitstellen.

[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)]
public sealed class HttpLoggingAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)>]
type HttpLoggingAttribute = class
    inherit Attribute
Public NotInheritable Class HttpLoggingAttribute
Inherits Attribute
Vererbung
HttpLoggingAttribute
Attribute

Konstruktoren

HttpLoggingAttribute(HttpLoggingFields)

Initialisiert eine Instanz der HttpLoggingAttribute-Klasse.

Eigenschaften

IsRequestBodyLogLimitSet

Gibt an, ob RequestBodyLogLimit festgelegt wurde.

IsResponseBodyLogLimitSet

Gibt an, ob ResponseBodyLogLimit festgelegt wurde.

LoggingFields

Gibt an, welche Felder protokolliert werden sollen.

RequestBodyLogLimit

Gibt die maximale Anzahl von Bytes an, die für den Anforderungstext protokolliert werden sollen.

ResponseBodyLogLimit

Gibt die maximale Anzahl von Bytes an, die für den Antworttext protokolliert werden sollen.

Gilt für: