Serialização bináriaBinary serialization

A serialização pode ser definida como o processo de armazenar o estado de um objeto em uma mídia de armazenamento.Serialization can be defined as the process of storing the state of an object to a storage medium. Durante esse processo, os campos públicos e privados do objeto e o nome da classe, incluindo o assembly que contém a classe, são convertidos em um fluxo de bytes, que é em seguida escrito em um fluxo de dados.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 o objeto é desserializado posteriormente, um clone exato do objeto original é criado.When the object is subsequently deserialized, an exact clone of the original object is created.

Ao implementar um mecanismo de serialização em um ambiente orientado a objeto, você precisará fazer algumas trocas entre a facilidade de uso e a flexibilidade.When implementing a serialization mechanism in an object-oriented environment, you have to make a number of tradeoffs between ease of use and flexibility. O processo pode ser automatizado em grande parte, contanto que você tenha controle suficiente sobre o processo.The process can be automated to a large extent, provided you are given sufficient control over the process. Por exemplo, em algumas situações, a serialização binária simples pode não ser suficiente, ou pode haver um motivo específico para decidir quais campos em uma classe precisam ser serializados.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. As seções a seguir examinam o mecanismo de serialização robusto fornecido com o .NET e destacam vários recursos importantes que permitem personalizar o processo para atender às suas necessidades.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.

Observação

O estado de um objeto codificado UTF-8 ou UTF-7 não é preservado se o objeto é serializado e desserializado usando versões diferentes do .NET Framework.The state of a UTF-8 or UTF-7 encoded object is not preserved if the object is serialized and deserialized using different .NET Framework versions.

Aviso

A serialização binária pode ser perigosa.Binary serialization can be dangerous. Para obter mais informações, consulte Guia de segurança do BinaryFormatter.For more information, see BinaryFormatter security guide.

A serialização binária permite modificar membros privados dentro de um objeto e, portanto, alterar o estado dele.Binary serialization allows modifying private members inside an object and therefore changing the state of it. Por isso, são recomendadas outras estruturas de serialização, como System.Text.Json , que operam na superfície da API pública.Because of this, other serialization frameworks, like System.Text.Json, that operate on the public API surface are recommended.

.NET Core.NET Core

O .NET Core dá suporte à serialização binária para um subconjunto de tipos..NET Core supports binary serialization for a subset of types. Você pode ver a lista de tipos com suporte na seção tipos serializáveis a seguir.You can see the list of supported types in the Serializable types section that follows. Os tipos listados têm a garantia de serem serializáveis entre .NET Framework 4.5.1 e versões posteriores e entre o .NET Core 2,0 e versões posteriores.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. Outras implementações do .NET, como mono, não são oficialmente suportadas, mas também devem funcionar.Other .NET implementations, such as Mono, aren't officially supported but should also work.

Tipos serializáveisSerializable types

TypeType ObservaçõesNotes
Microsoft.CSharp.RuntimeBinder.RuntimeBinderException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
Microsoft.CSharp.RuntimeBinder.RuntimeBinderInternalCompilerException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.AccessViolationException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.AggregateException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.AppDomainUnloadedException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.ApplicationException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.ArgumentException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.ArgumentNullException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.ArgumentOutOfRangeException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.ArithmeticException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Array
System.ArraySegment<T>
System.ArrayTypeMismatchException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Attribute
System.BadImageFormatException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Boolean
System.Byte
System.CannotUnloadAppDomainException A partir do .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 partir do .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 partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.ComponentModel.BindingList<T>
System.ComponentModel.DataAnnotations.ValidationException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.ComponentModel.Design.CheckoutException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.ComponentModel.InvalidAsynchronousStateException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.ComponentModel.InvalidEnumArgumentException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.ComponentModel.LicenseException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
Não há suporte para a serialização de .NET Framework para o .NET Core.Serialization from .NET Framework to .NET Core is not supported.
System.ComponentModel.WarningException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.ComponentModel.Win32Exception A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Configuration.ConfigurationErrorsException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Configuration.ConfigurationException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Configuration.Provider.ProviderException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Configuration.SettingsPropertyIsReadOnlyException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Configuration.SettingsPropertyNotFoundException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Configuration.SettingsPropertyWrongTypeException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.ContextMarshalException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.DBNull A partir do .NET Core 2.0.2 e versões posteriores.Starting in .NET Core 2.0.2 and later versions.
System.Data.Common.DbException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Data.ConstraintException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Data.DBConcurrencyException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Data.DataException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Data.DataSet
System.Data.DataTable Se você definir RemotingFormat como SerializationFormat.Binary , ele só poderá ser trocado com o .net Core 2,1 e versões posteriores.If you set RemotingFormat to SerializationFormat.Binary, it can only be exchanged with .NET Core 2.1 and later versions.
System.Data.DeletedRowInaccessibleException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Data.DuplicateNameException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Data.EvaluateException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Data.InRowChangingEventException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Data.InvalidConstraintException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Data.InvalidExpressionException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Data.MissingPrimaryKeyException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Data.NoNullAllowedException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Data.Odbc.OdbcException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Data.OperationAbortedException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Data.PropertyCollection
System.Data.ReadOnlyException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Data.RowNotInTableException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Data.SqlClient.SqlException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
Não há suporte para a serialização de .NET Framework para o .NET CoreSerialization from .NET Framework to .NET Core is not supported
System.Data.SqlTypes.SqlAlreadyFilledException A partir do .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 partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Data.SqlTypes.SqlNullValueException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Data.SqlTypes.SqlString
System.Data.SqlTypes.SqlTruncateException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Data.SqlTypes.SqlTypeException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Data.StrongTypingException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Data.SyntaxErrorException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Data.VersionNotFoundException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.DataMisalignedException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.DateTime
System.DateTimeOffset
System.Decimal
System.Diagnostics.Contracts.ContractException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Diagnostics.Tracing.EventSourceException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.IO.DirectoryNotFoundException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.DirectoryServices.AccountManagement.MultipleMatchesException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.DirectoryServices.AccountManagement.NoMatchingPrincipalException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.DirectoryServices.AccountManagement.PasswordException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.DirectoryServices.AccountManagement.PrincipalException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.DirectoryServices.AccountManagement.PrincipalExistsException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.DirectoryServices.AccountManagement.PrincipalOperationException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.DirectoryServices.AccountManagement.PrincipalServerDownException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectExistsException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectNotFoundException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.DirectoryServices.ActiveDirectory.ActiveDirectoryOperationException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.DirectoryServices.ActiveDirectory.ActiveDirectoryServerDownException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.DirectoryServices.ActiveDirectory.ForestTrustCollisionException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.DirectoryServices.ActiveDirectory.SyncFromAllServersOperationException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.DirectoryServices.DirectoryServicesCOMException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.DirectoryServices.Protocols.BerConversionException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.DirectoryServices.Protocols.DirectoryException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.DirectoryServices.Protocols.DirectoryOperationException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.DirectoryServices.Protocols.LdapException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.DirectoryServices.Protocols.TlsOperationException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.DivideByZeroException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.DllNotFoundException A partir do .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 partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.EntryPointNotFoundException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Enum
System.EventArgs A partir do .NET Core 2.0.6.Starting in .NET Core 2.0.6.
System.Exception
System.ExecutionEngineException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.FieldAccessException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.FormatException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Globalization.CompareInfo
System.Globalization.CultureNotFoundException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Globalization.SortVersion
System.Guid
System.IO.Compression.ZLibException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.IO.DriveNotFoundException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.IO.EndOfStreamException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.IO.FileFormatException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.IO.FileLoadException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.IO.FileNotFoundException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.IO.IOException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.IO.InternalBufferOverflowException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.IO.InvalidDataException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.IO.IsolatedStorage.IsolatedStorageException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.IO.PathTooLongException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.IndexOutOfRangeException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.InsufficientExecutionStackException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.InsufficientMemoryException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Int16
System.Int32
System.Int64
System.IntPtr
System.InvalidCastException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.InvalidOperationException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.InvalidProgramException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.InvalidTimeZoneException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.MemberAccessException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.MethodAccessException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.MissingFieldException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.MissingMemberException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.MissingMethodException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.MulticastNotSupportedException A partir do .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 partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Net.HttpListenerException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Net.Mail.SmtpException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Net.Mail.SmtpFailedRecipientException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Net.Mail.SmtpFailedRecipientsException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Net.NetworkInformation.NetworkInformationException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Net.NetworkInformation.PingException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Net.ProtocolViolationException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Net.Sockets.SocketException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Net.WebException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Net.WebSockets.WebSocketException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.NotFiniteNumberException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.NotImplementedException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.NotSupportedException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.NullReferenceException A partir do .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 partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.OperationCanceledException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.OutOfMemoryException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.OverflowException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.PlatformNotSupportedException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.RankException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Reflection.AmbiguousMatchException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Reflection.CustomAttributeFormatException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Reflection.InvalidFilterCriteriaException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Reflection.ReflectionTypeLoadException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
Não há suporte para a serialização de .NET Framework para o .NET Core.Serialization from .NET Framework to .NET Core is not supported.
System.Reflection.TargetException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Reflection.TargetInvocationException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Reflection.TargetParameterCountException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Resources.MissingManifestResourceException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Resources.MissingSatelliteAssemblyException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Runtime.CompilerServices.RuntimeWrappedException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Runtime.InteropServices.COMException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Runtime.InteropServices.ExternalException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Runtime.InteropServices.InvalidComObjectException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Runtime.InteropServices.InvalidOleVariantTypeException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Runtime.InteropServices.MarshalDirectiveException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Runtime.InteropServices.SEHException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Runtime.InteropServices.SafeArrayRankMismatchException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Runtime.InteropServices.SafeArrayTypeMismatchException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Runtime.Serialization.InvalidDataContractException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Runtime.Serialization.SerializationException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.SByte
System.Security.AccessControl.PrivilegeNotHeldException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Security.Authentication.AuthenticationException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Security.Authentication.InvalidCredentialException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Security.Cryptography.CryptographicException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Security.Cryptography.CryptographicUnexpectedOperationException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Security.Cryptography.Xml.CryptoSignedXmlRecursionException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Security.HostProtectionException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Security.Policy.PolicyException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Security.Principal.IdentityNotMappedException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Security.SecurityException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
Dados de serialização limitados.Limited serialization data.
System.Security.VerificationException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Security.XmlSyntaxException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.ServiceProcess.TimeoutException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Single
System.StackOverflowException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.String
System.StringComparer
System.SystemException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Text.DecoderFallbackException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Text.EncoderFallbackException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Text.RegularExpressions.RegexMatchTimeoutException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Text.StringBuilder
System.Threading.AbandonedMutexException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Threading.BarrierPostPhaseException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Threading.LockRecursionException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Threading.SemaphoreFullException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Threading.SynchronizationLockException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Threading.Tasks.TaskCanceledException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Threading.Tasks.TaskSchedulerException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Threading.ThreadAbortException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Threading.ThreadInterruptedException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Threading.ThreadStartException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Threading.ThreadStateException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Threading.WaitHandleCannotBeOpenedException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.TimeSpan
System.TimeZoneInfo.AdjustmentRule
System.TimeZoneInfo
System.TimeZoneNotFoundException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.TimeoutException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Transactions.TransactionAbortedException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Transactions.TransactionException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Transactions.TransactionInDoubtException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Transactions.TransactionManagerCommunicationException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Transactions.TransactionPromotionException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Tuple
System.TypeAccessException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.TypeInitializationException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.TypeLoadException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.TypeUnloadedException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.UInt16
System.UInt32
System.UInt64
System.UIntPtr
System.UnauthorizedAccessException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Uri
System.UriFormatException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.ValueTuple Não serializável no .NET Framework 4,7 e em versões anteriores.Not serializable in .NET Framework 4.7 and earlier versions.
System.ValueType
System.Version
System.WeakReference<T>
System.WeakReference
System.Xml.Schema.XmlSchemaException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Xml.Schema.XmlSchemaInferenceException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Xml.Schema.XmlSchemaValidationException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Xml.XPath.XPathException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Xml.XmlException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Xml.Xsl.XsltCompileException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.
System.Xml.Xsl.XsltException A partir do .NET Core 2.0.4.Starting in .NET Core 2.0.4.

Confira tambémSee also