JsonSerializer.IsReflectionEnabledByDefault 屬性

定義

會取得一個值,指示未設定 JsonSerializerOptions 的實例是否應該預設為基於 DefaultJsonTypeInfoResolver反射的 。

public:
 static property bool IsReflectionEnabledByDefault { bool get(); };
public static bool IsReflectionEnabledByDefault { get; }
static member IsReflectionEnabledByDefault : bool
Public ReadOnly Property IsReflectionEnabledByDefault As Boolean

屬性值

備註

屬性的值是由「System.Text.Json.JsonSerializer.IsReflectionEnabledByDefault」AppContext設定支持,若未設定則預設為true

適用於