Compartir a través de


HttpLoggingAttribute Clase

Definición

Metadatos que proporcionan la configuración específica del punto de conexión para el middleware HttpLogging.

[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
Herencia
HttpLoggingAttribute
Atributos

Constructores

HttpLoggingAttribute(HttpLoggingFields)

Inicializa una instancia de la clase HttpLoggingAttribute.

Propiedades

IsRequestBodyLogLimitSet

Indica si RequestBodyLogLimit se ha establecido.

IsResponseBodyLogLimitSet

Indica si ResponseBodyLogLimit se ha establecido.

LoggingFields

Especifica los campos que se van a registrar.

RequestBodyLogLimit

Especifica el número máximo de bytes que se van a registrar para el cuerpo de la solicitud.

ResponseBodyLogLimit

Especifica el número máximo de bytes que se registrarán para el cuerpo de la respuesta.

Se aplica a