Serializzazione binariaBinary serialization

La serializzazione può essere definita come il processo di archiviazione dello stato di un oggetto su un supporto di archiviazione.Serialization can be defined as the process of storing the state of an object to a storage medium. Durante tale processo, i campi pubblici e privati dell'oggetto e il nome della classe, incluso l'assembly contenente la classe, vengono convertiti in un flusso di byte che viene scritto in un flusso di dati.During this process, the public and private fields of the object and the name of the class, including the assembly containing the class, are converted to a stream of bytes, which is then written to a data stream. Quando l'oggetto viene successivamente deserializzato, viene creato un clone esatto dell'oggetto originale.When the object is subsequently deserialized, an exact clone of the original object is created.

Quando si implementa un meccanismo di serializzazione in un ambiente orientato agli oggetti, è necessario fare una serie di compromessi tra semplicità di utilizzo e flessibilità.When implementing a serialization mechanism in an object-oriented environment, you have to make a number of tradeoffs between ease of use and flexibility. Il processo può essere automatizzato in un ambito di grandi dimensioni, purché si disponga di controllo sufficiente sul processo.The process can be automated to a large extent, provided you are given sufficient control over the process. Ad esempio, possono verificarsi situazioni in cui non è sufficiente la semplice serializzazione binaria o potrebbe esserci una ragione specifica per decidere quali campi in una classe devono essere serializzati.For example, situations may arise where simple binary serialization is not sufficient, or there might be a specific reason to decide which fields in a class need to be serialized. Nelle sezioni seguenti viene esaminato l'avanzato meccanismo di serializzazione fornito con .NET e vengono evidenziate alcune importanti funzionalità che consentono di personalizzare il processo in base alle esigenze.The following sections examine the robust serialization mechanism provided with .NET and highlight a number of important features that allow you to customize the process to meet your needs.

Nota

Lo stato di un oggetto con codifica UTF-8 o UTF-7 non viene mantenuto se l'oggetto viene serializzato e deserializzato usando versioni diverse di .NET.The state of a UTF-8 or UTF-7 encoded object is not preserved if the object is serialized and deserialized using different .NET versions.

Avviso

La serializzazione binaria può rappresentare un pericolo.Binary serialization can be dangerous. Per ulteriori informazioni, vedere la Guida alla sicurezza di BinaryFormatter.For more information, see BinaryFormatter security guide.

Con la serializzazione binaria è possibile modificare membri privati all'interno di un oggetto e quindi modificarne lo stato.Binary serialization allows modifying private members inside an object and therefore changing the state of it. Per questo motivo, sono consigliati altri Framework di serializzazione, System.Text.Json ad esempio, che operano sulla superficie dell'API pubblica.Because of this, other serialization frameworks, like System.Text.Json, that operate on the public API surface are recommended.

.NET Core.NET Core

.NET Core supporta la serializzazione binaria per un subset di tipi..NET Core supports binary serialization for a subset of types. È possibile visualizzare l'elenco dei tipi supportati nella sezione tipi serializzabili riportata di seguito.You can see the list of supported types in the Serializable types section that follows. I tipi elencati sono sicuramente serializzabili tra .NET Framework 4.5.1 e versioni successive e tra .NET Core 2,0 e versioni successive.The listed types are guaranteed to be serializable between .NET Framework 4.5.1 and later versions and between .NET Core 2.0 and later versions. Altre implementazioni di .NET, ad esempio mono, non sono ufficialmente supportate, ma dovrebbero anche funzionare.Other .NET implementations, such as Mono, aren't officially supported but should also work.

Tipi serializzabiliSerializable types

TypeType NoteNotes
Microsoft.CSharp.RuntimeBinder.RuntimeBinderException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
Microsoft.CSharp.RuntimeBinder.RuntimeBinderInternalCompilerException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.AccessViolationException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.AggregateException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.AppDomainUnloadedException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.ApplicationException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.ArgumentException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.ArgumentNullException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.ArgumentOutOfRangeException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.ArithmeticException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Array
System.ArraySegment<T>
System.ArrayTypeMismatchException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Attribute
System.BadImageFormatException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Boolean
System.Byte
System.CannotUnloadAppDomainException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Char
System.Collections.ArrayList
System.Collections.BitArray
System.Collections.Comparer
System.Collections.DictionaryEntry
System.Collections.Generic.Comparer<T>
System.Collections.Generic.Dictionary<TKey,TValue>
System.Collections.Generic.EqualityComparer<T>
System.Collections.Generic.HashSet<T>
System.Collections.Generic.KeyNotFoundException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Collections.Generic.KeyValuePair<TKey,TValue>
System.Collections.Generic.LinkedList<T>
System.Collections.Generic.List<T>
System.Collections.Generic.Queue<T>
System.Collections.Generic.SortedDictionary<TKey,TValue>
System.Collections.Generic.SortedList<TKey,TValue>
System.Collections.Generic.SortedSet<T>
System.Collections.Generic.Stack<T>
System.Collections.Hashtable
System.Collections.ObjectModel.Collection<T>
System.Collections.ObjectModel.KeyedCollection<TKey,TItem>
System.Collections.ObjectModel.ObservableCollection<T>
System.Collections.ObjectModel.ReadOnlyCollection<T>
System.Collections.ObjectModel.ReadOnlyDictionary<TKey,TValue>
System.Collections.ObjectModel.ReadOnlyObservableCollection<T>
System.Collections.Queue
System.Collections.SortedList
System.Collections.Specialized.HybridDictionary
System.Collections.Specialized.ListDictionary
System.Collections.Specialized.OrderedDictionary
System.Collections.Specialized.StringCollection
System.Collections.Specialized.StringDictionary
System.Collections.Stack
System.Collections.Generic.NonRandomizedStringEqualityComparer A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.ComponentModel.BindingList<T>
System.ComponentModel.DataAnnotations.ValidationException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.ComponentModel.Design.CheckoutException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.ComponentModel.InvalidAsynchronousStateException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.ComponentModel.InvalidEnumArgumentException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.ComponentModel.LicenseException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
La serializzazione da .NET Framework a .NET Core non è supportata.Serialization from .NET Framework to .NET Core is not supported.
System.ComponentModel.WarningException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.ComponentModel.Win32Exception A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Configuration.ConfigurationErrorsException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Configuration.ConfigurationException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Configuration.Provider.ProviderException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Configuration.SettingsPropertyIsReadOnlyException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Configuration.SettingsPropertyNotFoundException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Configuration.SettingsPropertyWrongTypeException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.ContextMarshalException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.DBNull A partire da .NET Core 2.0.2 e versioni successive.Starting in .NET Core 2.0.2 and later versions.
System.Data.Common.DbException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Data.ConstraintException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Data.DBConcurrencyException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Data.DataException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Data.DataSet
System.Data.DataTable Se si imposta RemotingFormat su SerializationFormat.Binary , può essere scambiato solo con .net core 2,1 e versioni successive.If you set RemotingFormat to SerializationFormat.Binary, it can only be exchanged with .NET Core 2.1 and later versions.
System.Data.DeletedRowInaccessibleException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Data.DuplicateNameException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Data.EvaluateException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Data.InRowChangingEventException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Data.InvalidConstraintException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Data.InvalidExpressionException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Data.MissingPrimaryKeyException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Data.NoNullAllowedException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Data.Odbc.OdbcException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Data.OperationAbortedException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Data.PropertyCollection
System.Data.ReadOnlyException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Data.RowNotInTableException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Data.SqlClient.SqlException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
La serializzazione da .NET Framework a .NET Core non è supportataSerialization from .NET Framework to .NET Core is not supported
System.Data.SqlTypes.SqlAlreadyFilledException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Data.SqlTypes.SqlBoolean
System.Data.SqlTypes.SqlByte
System.Data.SqlTypes.SqlDateTime
System.Data.SqlTypes.SqlDouble
System.Data.SqlTypes.SqlGuid
System.Data.SqlTypes.SqlInt16
System.Data.SqlTypes.SqlInt32
System.Data.SqlTypes.SqlInt64
System.Data.SqlTypes.SqlNotFilledException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Data.SqlTypes.SqlNullValueException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Data.SqlTypes.SqlString
System.Data.SqlTypes.SqlTruncateException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Data.SqlTypes.SqlTypeException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Data.StrongTypingException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Data.SyntaxErrorException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Data.VersionNotFoundException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.DataMisalignedException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.DateTime
System.DateTimeOffset
System.Decimal
System.Diagnostics.Contracts.ContractException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Diagnostics.Tracing.EventSourceException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.IO.DirectoryNotFoundException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.DirectoryServices.AccountManagement.MultipleMatchesException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.DirectoryServices.AccountManagement.NoMatchingPrincipalException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.DirectoryServices.AccountManagement.PasswordException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.DirectoryServices.AccountManagement.PrincipalException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.DirectoryServices.AccountManagement.PrincipalExistsException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.DirectoryServices.AccountManagement.PrincipalOperationException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.DirectoryServices.AccountManagement.PrincipalServerDownException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectExistsException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectNotFoundException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.DirectoryServices.ActiveDirectory.ActiveDirectoryOperationException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.DirectoryServices.ActiveDirectory.ActiveDirectoryServerDownException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.DirectoryServices.ActiveDirectory.ForestTrustCollisionException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.DirectoryServices.ActiveDirectory.SyncFromAllServersOperationException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.DirectoryServices.DirectoryServicesCOMException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.DirectoryServices.Protocols.BerConversionException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.DirectoryServices.Protocols.DirectoryException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.DirectoryServices.Protocols.DirectoryOperationException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.DirectoryServices.Protocols.LdapException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.DirectoryServices.Protocols.TlsOperationException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.DivideByZeroException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.DllNotFoundException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Double
System.Drawing.Color
System.Drawing.Point
System.Drawing.PointF
System.Drawing.Rectangle
System.Drawing.RectangleF
System.Drawing.Size
System.Drawing.SizeF
System.DuplicateWaitObjectException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.EntryPointNotFoundException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Enum
System.EventArgs A partire da .NET Core 2.0.6.Starting in .NET Core 2.0.6.
System.Exception
System.ExecutionEngineException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.FieldAccessException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.FormatException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Globalization.CompareInfo
System.Globalization.CultureNotFoundException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Globalization.SortVersion
System.Guid
System.IO.Compression.ZLibException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.IO.DriveNotFoundException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.IO.EndOfStreamException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.IO.FileFormatException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.IO.FileLoadException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.IO.FileNotFoundException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.IO.IOException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.IO.InternalBufferOverflowException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.IO.InvalidDataException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.IO.IsolatedStorage.IsolatedStorageException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.IO.PathTooLongException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.IndexOutOfRangeException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.InsufficientExecutionStackException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.InsufficientMemoryException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Int16
System.Int32
System.Int64
System.IntPtr
System.InvalidCastException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.InvalidOperationException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.InvalidProgramException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.InvalidTimeZoneException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.MemberAccessException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.MethodAccessException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.MissingFieldException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.MissingMemberException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.MissingMethodException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.MulticastNotSupportedException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Net.Cookie
System.Net.CookieCollection
System.Net.CookieContainer
System.Net.CookieException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Net.HttpListenerException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Net.Mail.SmtpException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Net.Mail.SmtpFailedRecipientException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Net.Mail.SmtpFailedRecipientsException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Net.NetworkInformation.NetworkInformationException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Net.NetworkInformation.PingException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Net.ProtocolViolationException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Net.Sockets.SocketException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Net.WebException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Net.WebSockets.WebSocketException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.NotFiniteNumberException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.NotImplementedException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.NotSupportedException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.NullReferenceException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Nullable<T>
System.Numerics.BigInteger
System.Numerics.Complex
System.Object
System.ObjectDisposedException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.OperationCanceledException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.OutOfMemoryException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.OverflowException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.PlatformNotSupportedException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.RankException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Reflection.AmbiguousMatchException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Reflection.CustomAttributeFormatException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Reflection.InvalidFilterCriteriaException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Reflection.ReflectionTypeLoadException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
La serializzazione da .NET Framework a .NET Core non è supportata.Serialization from .NET Framework to .NET Core is not supported.
System.Reflection.TargetException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Reflection.TargetInvocationException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Reflection.TargetParameterCountException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Resources.MissingManifestResourceException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Resources.MissingSatelliteAssemblyException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Runtime.CompilerServices.RuntimeWrappedException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Runtime.InteropServices.COMException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Runtime.InteropServices.ExternalException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Runtime.InteropServices.InvalidComObjectException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Runtime.InteropServices.InvalidOleVariantTypeException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Runtime.InteropServices.MarshalDirectiveException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Runtime.InteropServices.SEHException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Runtime.InteropServices.SafeArrayRankMismatchException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Runtime.InteropServices.SafeArrayTypeMismatchException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Runtime.Serialization.InvalidDataContractException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Runtime.Serialization.SerializationException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.SByte
System.Security.AccessControl.PrivilegeNotHeldException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Security.Authentication.AuthenticationException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Security.Authentication.InvalidCredentialException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Security.Cryptography.CryptographicException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Security.Cryptography.CryptographicUnexpectedOperationException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Security.Cryptography.Xml.CryptoSignedXmlRecursionException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Security.HostProtectionException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Security.Policy.PolicyException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Security.Principal.IdentityNotMappedException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Security.SecurityException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
Dati di serializzazione limitati.Limited serialization data.
System.Security.VerificationException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Security.XmlSyntaxException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.ServiceProcess.TimeoutException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Single
System.StackOverflowException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.String
System.StringComparer
System.SystemException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Text.DecoderFallbackException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Text.EncoderFallbackException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Text.RegularExpressions.RegexMatchTimeoutException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Text.StringBuilder
System.Threading.AbandonedMutexException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Threading.BarrierPostPhaseException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Threading.LockRecursionException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Threading.SemaphoreFullException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Threading.SynchronizationLockException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Threading.Tasks.TaskCanceledException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Threading.Tasks.TaskSchedulerException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Threading.ThreadAbortException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Threading.ThreadInterruptedException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Threading.ThreadStartException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Threading.ThreadStateException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Threading.WaitHandleCannotBeOpenedException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.TimeSpan
System.TimeZoneInfo.AdjustmentRule
System.TimeZoneInfo
System.TimeZoneNotFoundException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.TimeoutException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Transactions.TransactionAbortedException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Transactions.TransactionException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Transactions.TransactionInDoubtException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Transactions.TransactionManagerCommunicationException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Transactions.TransactionPromotionException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Tuple
System.TypeAccessException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.TypeInitializationException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.TypeLoadException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.TypeUnloadedException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.UInt16
System.UInt32
System.UInt64
System.UIntPtr
System.UnauthorizedAccessException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Uri
System.UriFormatException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.ValueTuple Non serializzabile in .NET Framework 4,7 e versioni precedenti.Not serializable in .NET Framework 4.7 and earlier versions.
System.ValueType
System.Version
System.WeakReference<T>
System.WeakReference
System.Xml.Schema.XmlSchemaException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Xml.Schema.XmlSchemaInferenceException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Xml.Schema.XmlSchemaValidationException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Xml.XPath.XPathException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Xml.XmlException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Xml.Xsl.XsltCompileException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Xml.Xsl.XsltException A partire da .NET Core 2.0.4.Starting in .NET Core 2.0.4.

Vedere ancheSee also