共用方式為


HttpLoggingInterceptorContext.IsAnyEnabled(HttpLoggingFields) 方法

定義

檢查 中 LoggingFields 目前是否已啟用任何指定的欄位。

public bool IsAnyEnabled (Microsoft.AspNetCore.HttpLogging.HttpLoggingFields fields);
member this.IsAnyEnabled : Microsoft.AspNetCore.HttpLogging.HttpLoggingFields -> bool
Public Function IsAnyEnabled (fields As HttpLoggingFields) As Boolean

參數

fields
HttpLoggingFields

要檢查的一或多個欄位旗標。

傳回

適用於