语言

ILoggingOptions.ShouldWarnForStringEnumValueInJson(Type) 方法

定义

如果尚未执行有关给定枚举类型的字符串值的警告,则 true 返回。

public bool ShouldWarnForStringEnumValueInJson(Type enumType);
abstract member ShouldWarnForStringEnumValueInJson : Type -> bool
Public Function ShouldWarnForStringEnumValueInJson (enumType As Type) As Boolean

参数

enumType
Type

要检查的类型。

返回

是否已发出警告。

适用于