FormatterAssemblyStyle Enum

Definition

Varning

Formatter-based serialization is obsolete and should not be used.

Anger vilken metod som ska användas under deserialiseringen för att hitta och läsa in sammansättningar.

public enum class FormatterAssemblyStyle
[System.Obsolete("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public enum FormatterAssemblyStyle
public enum FormatterAssemblyStyle
[System.Serializable]
public enum FormatterAssemblyStyle
[System.Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
public enum FormatterAssemblyStyle
[<System.Obsolete("Formatter-based serialization is obsolete and should not be used.", DiagnosticId="SYSLIB0050", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
type FormatterAssemblyStyle = 
type FormatterAssemblyStyle = 
[<System.Serializable>]
type FormatterAssemblyStyle = 
[<System.Serializable>]
[<System.Runtime.InteropServices.ComVisible(true)>]
type FormatterAssemblyStyle = 
Public Enum FormatterAssemblyStyle
Arv
FormatterAssemblyStyle
Attribut

Fält

Name Värde Description
Simple 0

I enkelt läge behöver sammansättningen som används under deserialiseringen inte matcha exakt den sammansättning som användes under serialiseringen. Mer specifikt behöver versionsnumren inte matchas eftersom LoadWithPartialName metoden används för att läsa in sammansättningen.

Full 1

I fullständigt läge måste sammansättningen som används under deserialiseringen matcha exakt den sammansättning som användes under serialiseringen. Metoden Load för Assembly klassen används för att läsa in sammansättningen.

Gäller för