Aracılığıyla paylaş


HttpLoggingAttribute Sınıf

Tanım

HttpLogging ara yazılımı için uç noktaya özgü ayarlar sağlayan meta veriler.

[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
Devralma
HttpLoggingAttribute
Öznitelikler

Oluşturucular

HttpLoggingAttribute(HttpLoggingFields)

HttpLoggingAttribute sınıfının örneğini başlatır.

Özellikler

IsRequestBodyLogLimitSet

Ayarlanıp ayarlanmadığını RequestBodyLogLimit gösterir.

IsResponseBodyLogLimitSet

Ayarlanıp ayarlanmadığını ResponseBodyLogLimit gösterir.

LoggingFields

Günlüğe kaydedilecek alanları belirtir.

RequestBodyLogLimit

İstek gövdesi için günlüğe kaydedilecek en fazla bayt sayısını belirtir.

ResponseBodyLogLimit

Yanıt gövdesi için günlüğe kaydedilecek en fazla bayt sayısını belirtir.

Şunlara uygulanır