Condividi tramite


FormatterPolicy Enumerazione

Definizione

Stile di formattazione da utilizzare per la serializzazione/deserializzazione delle informazioni da VisualizerObjectSource.

public enum FormatterPolicy
type FormatterPolicy = 
Public Enum FormatterPolicy
Ereditarietà
FormatterPolicy

Campi

Json 1

Serializzazione/deserializzazione tramite JSON. Questo userà Newtonsoft.Json durante l'esecuzione in .NET Framework e System.Text.Json in .NET 6+.

Legacy 0

Specifica che i metodi helper di serializzazione devono usare BinaryFormatter se il runtime lo supporta, altrimenti eseguono il fallback a Json. Tuttavia, questa funzionalità è obsoleta ed è disponibile solo per motivi di compatibilità. Per altre informazioni sul motivo per cui questa opzione non deve essere usata, vedere: https://learn.microsoft.com/en-us/dotnet/standard/serialization/binaryformatter-security-guide

NewtonsoftJson 2

Serializzazione/deserializzazione tramite JSON. Verrà usato Newtonsoft.Json in tutte le piattaforme .NET.

Si applica a