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

要检查的一个或多个字段标志。

返回

适用于