Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Some APIs have been marked as obsolete, starting in .NET 8. This breaking change is specific to APIs that have been marked as obsolete with a custom diagnostic ID. Suppressing the default obsoletion diagnostic ID, which is CS0618 for the C# compiler, does not suppress the warnings that the compiler generates when these APIs are used.
Change description
In previous .NET versions, these APIs can be used without any build warning. In .NET 8 and later versions, use of these APIs produces a compile-time warning or error with a custom diagnostic ID. The use of custom diagnostic IDs allows you to suppress the obsoletion warnings individually instead of blanket-suppressing all obsoletion warnings.
The following table lists the custom diagnostic IDs and their corresponding warning messages for obsoleted APIs.
Diagnostic ID | Description | Severity |
---|---|---|
SYSLIB0011 | BinaryFormatter serialization is obsolete | Warning/error |
SYSLIB0048 | RSA.EncryptValue(Byte[]) and RSA.DecryptValue(Byte[]) are obsolete. Use RSA.Encrypt and RSA.Decrypt instead. | Warning |
SYSLIB0049 | JsonSerializerOptions.AddContext is obsolete. To register a JsonSerializerContext, use either the TypeInfoResolver or TypeInfoResolverChain property. | Warning |
SYSLIB0050 | Formatter-based serialization is obsolete and should not be used. | Warning |
SYSLIB0051 | APIs that support obsolete formatter-based serialization are obsolete. They should not be called or extended by application code. | Warning |
SYSLIB0052 | APIs that support obsolete mechanisms for Regex extensibility are obsolete. | Warning |
SYSLIB0053 | AesGcm should indicate the required tag size for encryption and decryption. Use a constructor that accepts the tag size. | Warning |
Version introduced
.NET 8
Type of breaking change
These obsoletions can affect source compatibility.
Recommended action
Follow the specific guidance provided for the each diagnostic ID using the URL link provided on the warning.
Warnings or errors for these obsoletions can't be suppressed using the standard diagnostic ID for obsolete types or members; use the custom
SYSLIBxxxx
diagnostic ID value instead.
Affected APIs
SYSLIB0011
- System.Resources.Extensions.PreserializedResourceWriter.AddBinaryFormattedResource(String, Byte[], String)
- System.Runtime.Serialization.Formatter
- System.Runtime.Serialization.IFormatter
- System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
SYSLIB0048
- System.Security.Cryptography.RSA.EncryptValue(Byte[])
- System.Security.Cryptography.RSA.DecryptValue(Byte[])
- System.Security.Cryptography.RSACryptoServiceProvider.EncryptValue(Byte[])
- System.Security.Cryptography.RSACryptoServiceProvider.DecryptValue(Byte[])
SYSLIB0049
SYSLIB0050
- System.Runtime.Serialization.FormatterConverter
- System.Runtime.Serialization.FormatterServices
- System.Runtime.Serialization.IFormatterConverter
- System.Runtime.Serialization.IObjectReference
- System.Runtime.Serialization.ISafeSerializationData
- System.Runtime.Serialization.ISerializationSurrogate
- System.Runtime.Serialization.ISurrogateSelector
- System.Runtime.Serialization.ObjectIDGenerator
- System.Runtime.Serialization.ObjectManager
- System.Runtime.Serialization.SafeSerializationEventArgs
- System.Runtime.Serialization.SerializationObjectManager
- System.Runtime.Serialization.StreamingContextStates
- System.Runtime.Serialization.SurrogateSelector
- System.Runtime.Serialization.Formatters.FormatterAssemblyStyle
- System.Runtime.Serialization.Formatters.FormatterTypeStyle
- System.Runtime.Serialization.Formatters.IFieldInfo
- System.Runtime.Serialization.Formatters.TypeFilterLevel
- System.Type.IsSerializable
- System.Reflection.FieldAttributes.NotSerialized
- System.Reflection.FieldInfo.IsNotSerialized
- System.Reflection.TypeAttributes.Serializable
- System.Runtime.Serialization.ISerializable.GetObjectData(SerializationInfo, StreamingContext)
- SerializationInfo(Type, IFormatterConverter, Boolean)
- SerializationInfo(Type, IFormatterConverter)
- StreamingContext(StreamingContextStates, Object)
- StreamingContext(StreamingContextStates)
SYSLIB0051
The SYSLIB0051
API obsoletions are organized here by namespace.
Microsoft.CSharp.RuntimeBinder namespace
- Microsoft.CSharp.RuntimeBinder.RuntimeBinderException.RuntimeBinderException(SerializationInfo, StreamingContext)
- Microsoft.CSharp.RuntimeBinder.RuntimeBinderInternalCompilerException.RuntimeBinderInternalCompilerException(SerializationInfo, StreamingContext)
Microsoft.VisualBasic.FileIO namespace
- Microsoft.VisualBasic.FileIO.MalformedLineException.MalformedLineException(SerializationInfo, StreamingContext)
- Microsoft.VisualBasic.FileIO.MalformedLineException.GetObjectData(SerializationInfo, StreamingContext)
System namespace
- System.AccessViolationException.AccessViolationException(SerializationInfo, StreamingContext)
- System.AggregateException.AggregateException(SerializationInfo, StreamingContext)
- System.AggregateException.GetObjectData(SerializationInfo, StreamingContext)
- System.AppDomainUnloadedException.AppDomainUnloadedException(SerializationInfo, StreamingContext)
- System.ApplicationException.ApplicationException(SerializationInfo, StreamingContext)
- System.ArgumentException.ArgumentException(SerializationInfo, StreamingContext)
- System.ArgumentException.GetObjectData(SerializationInfo, StreamingContext)
- System.ArgumentNullException.ArgumentNullException(SerializationInfo, StreamingContext)
- System.ArgumentOutOfRangeException.ArgumentOutOfRangeException(SerializationInfo, StreamingContext)
- System.ArgumentOutOfRangeException.GetObjectData(SerializationInfo, StreamingContext)
- System.ArithmeticException.ArithmeticException(SerializationInfo, StreamingContext)
- System.ArrayTypeMismatchException.ArrayTypeMismatchException(SerializationInfo, StreamingContext)
- System.BadImageFormatException.BadImageFormatException(SerializationInfo, StreamingContext)
- System.BadImageFormatException.GetObjectData(SerializationInfo, StreamingContext)
- System.CannotUnloadAppDomainException.CannotUnloadAppDomainException(SerializationInfo, StreamingContext)
- System.ContextMarshalException.ContextMarshalException(SerializationInfo, StreamingContext)
- System.DBNull.GetObjectData(SerializationInfo, StreamingContext)
- System.Delegate.GetObjectData(SerializationInfo, StreamingContext)
- System.DivideByZeroException.DivideByZeroException(SerializationInfo, StreamingContext)
- System.DuplicateWaitObjectException.DuplicateWaitObjectException(SerializationInfo, StreamingContext)
- System.EntryPointNotFoundException.EntryPointNotFoundException(SerializationInfo, StreamingContext)
- System.Exception.Exception(SerializationInfo, StreamingContext)
- System.Exception.GetObjectData(SerializationInfo, StreamingContext)
- System.FieldAccessException.FieldAccessException(SerializationInfo, StreamingContext)
- System.FormatException.FormatException(SerializationInfo, StreamingContext)
- System.InvalidCastException.InvalidCastException(SerializationInfo, StreamingContext)
- System.InvalidOperationException.InvalidOperationException(SerializationInfo, StreamingContext)
- System.InvalidTimeZoneException.InvalidTimeZoneException(SerializationInfo, StreamingContext)
- System.MemberAccessException.MemberAccessException(SerializationInfo, StreamingContext)
- System.MethodAccessException.MethodAccessException(SerializationInfo, StreamingContext)
- System.MissingFieldException.MissingFieldException(SerializationInfo, StreamingContext)
- System.MissingMemberException.MissingMemberException(SerializationInfo, StreamingContext)
- System.MissingMemberException.GetObjectData(SerializationInfo, StreamingContext)
- System.MissingMethodException.MissingMethodException(SerializationInfo, StreamingContext)
- System.MulticastDelegate.GetObjectData(SerializationInfo, StreamingContext)
- System.NotImplementedException.NotImplementedException(SerializationInfo, StreamingContext)
- System.NotSupportedException.NotSupportedException(SerializationInfo, StreamingContext)
- System.NullReferenceException.NullReferenceException(SerializationInfo, StreamingContext)
- System.ObjectDisposedException.ObjectDisposedException(SerializationInfo, StreamingContext)
- System.ObjectDisposedException.GetObjectData(SerializationInfo, StreamingContext)
- System.OperatingSystem.GetObjectData(SerializationInfo, StreamingContext)
- System.OperationCanceledException.OperationCanceledException(SerializationInfo, StreamingContext)
- System.OutOfMemoryException.OutOfMemoryException(SerializationInfo, StreamingContext)
- System.OverflowException.OverflowException(SerializationInfo, StreamingContext)
- System.PlatformNotSupportedException.PlatformNotSupportedException(SerializationInfo, StreamingContext)
- System.RankException.RankException(SerializationInfo, StreamingContext)
- System.RuntimeFieldHandle.GetObjectData(SerializationInfo, StreamingContext)
- System.RuntimeMethodHandle.GetObjectData(SerializationInfo, StreamingContext)
- System.RuntimeTypeHandle.GetObjectData(SerializationInfo, StreamingContext)
- System.SystemException.SystemException(SerializationInfo, StreamingContext)
- System.TimeoutException.TimeoutException(SerializationInfo, StreamingContext)
- System.TimeZoneNotFoundException.TimeZoneNotFoundException(SerializationInfo, StreamingContext)
- System.TypeAccessException.TypeAccessException(SerializationInfo, StreamingContext)
- System.TypeInitializationException.GetObjectData(SerializationInfo, StreamingContext)
- System.TypeLoadException.TypeLoadException(SerializationInfo, StreamingContext)
- System.TypeLoadException.GetObjectData(SerializationInfo, StreamingContext)
- System.TypeUnloadedException.TypeUnloadedException(SerializationInfo, StreamingContext)
- System.UnauthorizedAccessException.UnauthorizedAccessException(SerializationInfo, StreamingContext)
- System.WeakReference.WeakReference(SerializationInfo, StreamingContext)
- System.WeakReference.GetObjectData(SerializationInfo, StreamingContext)
- System.UriFormatException.UriFormatException(SerializationInfo, StreamingContext)
System.Collections namespace
System.Collections.Generic namespace
- System.Collections.Generic.LinkedList<T>.LinkedList<T>(SerializationInfo, StreamingContext)
- System.Collections.Generic.LinkedList<T>.GetObjectData(SerializationInfo, StreamingContext)
- System.Collections.Generic.SortedSet<T>.SortedSet<T>(SerializationInfo, StreamingContext)
- System.Collections.Generic.Dictionary<TKey,TValue>.Dictionary<TKey,TValue>(SerializationInfo, StreamingContext)
- System.Collections.Generic.Dictionary<TKey,TValue>.GetObjectData(SerializationInfo, StreamingContext)
- System.Collections.Generic.HashSet<T>.HashSet<T>(SerializationInfo, StreamingContext)
- System.Collections.Generic.HashSet<T>.GetObjectData(SerializationInfo, StreamingContext)
- System.Collections.Generic.KeyNotFoundException.KeyNotFoundException(SerializationInfo, StreamingContext)
System.Collections.Specialized namespace
- System.Collections.Specialized.NameObjectCollectionBase.NameObjectCollectionBase(SerializationInfo, StreamingContext)
- System.Collections.Specialized.NameObjectCollectionBase.GetObjectData(SerializationInfo, StreamingContext)
- System.Collections.Specialized.NameValueCollection.NameValueCollection(SerializationInfo, StreamingContext)
- System.Collections.Specialized.OrderedDictionary.OrderedDictionary(SerializationInfo, StreamingContext)
- System.Collections.Specialized.OrderedDictionary.GetObjectData(SerializationInfo, StreamingContext)
System.ComponentModel namespace
- System.ComponentModel.InvalidAsynchronousStateException.InvalidAsynchronousStateException(SerializationInfo, StreamingContext)
- System.ComponentModel.InvalidEnumArgumentException.InvalidEnumArgumentException(SerializationInfo, StreamingContext)
- System.ComponentModel.LicenseException.LicenseException(SerializationInfo, StreamingContext)
- System.ComponentModel.LicenseException.GetObjectData(SerializationInfo, StreamingContext)
- System.ComponentModel.WarningException.WarningException(SerializationInfo, StreamingContext)
- System.ComponentModel.WarningException.GetObjectData(SerializationInfo, StreamingContext)
- System.ComponentModel.Win32Exception.Win32Exception(SerializationInfo, StreamingContext)
- System.ComponentModel.Win32Exception.GetObjectData(SerializationInfo, StreamingContext)
System.ComponentModel.Composition namespace
- System.ComponentModel.Composition.CompositionContractMismatchException.CompositionContractMismatchException(SerializationInfo, StreamingContext)
- System.ComponentModel.Composition.ImportCardinalityMismatchException.ImportCardinalityMismatchException(SerializationInfo, StreamingContext)
System.ComponentModel.Composition.Primitives namespace
- System.ComponentModel.Composition.Primitives.ComposablePartException.ComposablePartException(SerializationInfo, StreamingContext)
- System.ComponentModel.Composition.Primitives.ComposablePartException.GetObjectData(SerializationInfo, StreamingContext)
System.ComponentModel.DataAnnotations namespace
System.ComponentModel.Design namespace
System.Configuration namespace
- System.Configuration.ConfigurationErrorsException.ConfigurationErrorsException(SerializationInfo, StreamingContext)
- System.Configuration.ConfigurationErrorsException.GetObjectData(SerializationInfo, StreamingContext)
- System.Configuration.ConfigurationException.ConfigurationException(SerializationInfo, StreamingContext)
- System.Configuration.ConfigurationException.GetObjectData(SerializationInfo, StreamingContext)
- System.Configuration.ConfigurationSectionCollection.GetObjectData(SerializationInfo, StreamingContext)
- System.Configuration.ConfigurationSectionGroupCollection.GetObjectData(SerializationInfo, StreamingContext)
- System.Configuration.PropertyInformationCollection.GetObjectData(SerializationInfo, StreamingContext)
- System.Configuration.SettingsPropertyIsReadOnlyException.SettingsPropertyIsReadOnlyException(SerializationInfo, StreamingContext)
- System.Configuration.SettingsPropertyNotFoundException.SettingsPropertyNotFoundException(SerializationInfo, StreamingContext)
- System.Configuration.SettingsPropertyWrongTypeException.SettingsPropertyWrongTypeException(SerializationInfo, StreamingContext)
- System.Configuration.Provider.ProviderException.ProviderException(SerializationInfo, StreamingContext)
- System.Configuration.SettingsPropertyIsReadOnlyException.SettingsPropertyIsReadOnlyException(SerializationInfo, StreamingContext)
- System.Configuration.SettingsPropertyNotFoundException.SettingsPropertyNotFoundException(SerializationInfo, StreamingContext)
- System.Configuration.SettingsPropertyWrongTypeException.SettingsPropertyWrongTypeException(SerializationInfo, StreamingContext)
System.Data namespace
- System.Data.ConstraintException.ConstraintException(SerializationInfo, StreamingContext)
- System.Data.DataException.DataException(SerializationInfo, StreamingContext)
- System.Data.DataSet.GetObjectData(SerializationInfo, StreamingContext)
- System.Data.DataTable.GetObjectData(SerializationInfo, StreamingContext)
- System.Data.DBConcurrencyException.GetObjectData(SerializationInfo, StreamingContext)
- System.Data.DeletedRowInaccessibleException.DeletedRowInaccessibleException(SerializationInfo, StreamingContext)
- System.Data.DuplicateNameException.DuplicateNameException(SerializationInfo, StreamingContext)
- System.Data.EvaluateException.EvaluateException(SerializationInfo, StreamingContext)
- System.Data.InRowChangingEventException.InRowChangingEventException(SerializationInfo, StreamingContext)
- System.Data.InvalidConstraintException.InvalidConstraintException(SerializationInfo, StreamingContext)
- System.Data.InvalidExpressionException.InvalidExpressionException(SerializationInfo, StreamingContext)
- System.Data.MissingPrimaryKeyException.MissingPrimaryKeyException(SerializationInfo, StreamingContext)
- System.Data.NoNullAllowedException.NoNullAllowedException(SerializationInfo, StreamingContext)
- System.Data.PropertyCollection.PropertyCollection(SerializationInfo, StreamingContext)
- System.Data.ReadOnlyException.ReadOnlyException(SerializationInfo, StreamingContext)
- System.Data.RowNotInTableException.RowNotInTableException(SerializationInfo, StreamingContext)
- System.Data.StrongTypingException.StrongTypingException(SerializationInfo, StreamingContext)
- System.Data.SyntaxErrorException.SyntaxErrorException(SerializationInfo, StreamingContext)
- System.Data.TypedTableBase<T>.TypedTableBase<T>(SerializationInfo, StreamingContext)
- System.Data.VersionNotFoundException.VersionNotFoundException(SerializationInfo, StreamingContext)
System.Data.Common namespace
System.Data.Odbc namespace
System.Data.OleDb namespace
System.Data.SqlTypes namespace
System.Diagnostics.Eventing.Reader namespace
- System.Diagnostics.Eventing.Reader.EventLogException.EventLogException(SerializationInfo, StreamingContext)
- System.Diagnostics.Eventing.Reader.EventLogException.GetObjectData(SerializationInfo, StreamingContext)
- System.Diagnostics.Eventing.Reader.EventLogInvalidDataException.EventLogInvalidDataException(SerializationInfo, StreamingContext)
- System.Diagnostics.Eventing.Reader.EventLogNotFoundException.EventLogNotFoundException(SerializationInfo, StreamingContext)
- System.Diagnostics.Eventing.Reader.EventLogProviderDisabledException.EventLogProviderDisabledException(SerializationInfo, StreamingContext)
- System.Diagnostics.Eventing.Reader.EventLogReadingException.EventLogReadingException(SerializationInfo, StreamingContext)
System.Diagnostics.Tracing namespace
System.DirectoryServices namespace
- System.DirectoryServices.DirectoryServicesCOMException.DirectoryServicesCOMException(SerializationInfo, StreamingContext)
- System.DirectoryServices.DirectoryServicesCOMException.GetObjectData(SerializationInfo, StreamingContext)
System.DirectoryServices.AccountManagement namespace
- System.DirectoryServices.AccountManagement.MultipleMatchesException.MultipleMatchesException(SerializationInfo, StreamingContext)
- System.DirectoryServices.AccountManagement.NoMatchingPrincipalException.NoMatchingPrincipalException(SerializationInfo, StreamingContext)
- System.DirectoryServices.AccountManagement.PasswordException.PasswordException(SerializationInfo, StreamingContext)
- System.DirectoryServices.AccountManagement.PrincipalException.PrincipalException(SerializationInfo, StreamingContext)
- System.DirectoryServices.AccountManagement.PrincipalExistsException.PrincipalExistsException(SerializationInfo, StreamingContext)
- System.DirectoryServices.AccountManagement.PrincipalOperationException.PrincipalOperationException(SerializationInfo, StreamingContext)
- System.DirectoryServices.AccountManagement.PrincipalOperationException.GetObjectData(SerializationInfo, StreamingContext)
- System.DirectoryServices.AccountManagement.PrincipalServerDownException.PrincipalServerDownException(SerializationInfo, StreamingContext)
- System.DirectoryServices.AccountManagement.PrincipalServerDownException.GetObjectData(SerializationInfo, StreamingContext)
System.DirectoryServices.ActiveDirectory namespace
- System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectExistsException.ActiveDirectoryObjectExistsException(SerializationInfo, StreamingContext)
- System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectNotFoundException.ActiveDirectoryObjectNotFoundException(SerializationInfo, StreamingContext)
- System.DirectoryServices.ActiveDirectory.ActiveDirectoryObjectNotFoundException.GetObjectData(SerializationInfo, StreamingContext)
- System.DirectoryServices.ActiveDirectory.ActiveDirectoryOperationException.ActiveDirectoryOperationException(SerializationInfo, StreamingContext)
- System.DirectoryServices.ActiveDirectory.ActiveDirectoryOperationException.GetObjectData(SerializationInfo, StreamingContext)
- System.DirectoryServices.ActiveDirectory.ActiveDirectoryServerDownException.ActiveDirectoryServerDownException(SerializationInfo, StreamingContext)
- System.DirectoryServices.ActiveDirectory.ActiveDirectoryServerDownException.GetObjectData(SerializationInfo, StreamingContext)
- System.DirectoryServices.ActiveDirectory.ForestTrustCollisionException.ForestTrustCollisionException(SerializationInfo, StreamingContext)
- System.DirectoryServices.ActiveDirectory.ForestTrustCollisionException.GetObjectData(SerializationInfo, StreamingContext)
- System.DirectoryServices.ActiveDirectory.SyncFromAllServersOperationException.SyncFromAllServersOperationException(SerializationInfo, StreamingContext)
- System.DirectoryServices.ActiveDirectory.SyncFromAllServersOperationException.GetObjectData(SerializationInfo, StreamingContext)
System.DirectoryServices.Protocols namespace
- System.DirectoryServices.Protocols.BerConversionException.BerConversionException(SerializationInfo, StreamingContext)
- System.DirectoryServices.Protocols.DirectoryException.DirectoryException(SerializationInfo, StreamingContext)
- System.DirectoryServices.Protocols.DirectoryOperationException.DirectoryOperationException(SerializationInfo, StreamingContext)
- System.DirectoryServices.Protocols.DirectoryOperationException.GetObjectData(SerializationInfo, StreamingContext)
- System.DirectoryServices.Protocols.LdapException.LdapException(SerializationInfo, StreamingContext)
- System.DirectoryServices.Protocols.LdapException.GetObjectData(SerializationInfo, StreamingContext)
- System.DirectoryServices.Protocols.TlsOperationException.TlsOperationException(SerializationInfo, StreamingContext)
System.Formats.Asn1 namespace
System.Formats.Cbor namespace
System.Globalization namespace
- System.Globalization.CultureNotFoundException.CultureNotFoundException(SerializationInfo, StreamingContext)
- System.Globalization.CultureNotFoundException.GetObjectData(SerializationInfo, StreamingContext)
System.IO namespace
- System.IO.DirectoryNotFoundException.DirectoryNotFoundException(SerializationInfo, StreamingContext)
- System.IO.DriveNotFoundException.DriveNotFoundException(SerializationInfo, StreamingContext)
- System.IO.EndOfStreamException.EndOfStreamException(SerializationInfo, StreamingContext)
- System.IO.FileFormatException.FileFormatException(SerializationInfo, StreamingContext)
- System.IO.FileFormatException.GetObjectData(SerializationInfo, StreamingContext)
- System.IO.FileLoadException.FileLoadException(SerializationInfo, StreamingContext)
- System.IO.FileLoadException.GetObjectData(SerializationInfo, StreamingContext)
- System.IO.FileNotFoundException.FileNotFoundException(SerializationInfo, StreamingContext)
- System.IO.FileNotFoundException.GetObjectData(SerializationInfo, StreamingContext)
- System.IO.FileSystemInfo.FileSystemInfo(SerializationInfo, StreamingContext)
- System.IO.FileSystemInfo.GetObjectData(SerializationInfo, StreamingContext)
- System.IO.InternalBufferOverflowException.InternalBufferOverflowException(SerializationInfo, StreamingContext)
- System.IO.IOException.IOException(SerializationInfo, StreamingContext)
- System.IO.IsolatedStorage.IsolatedStorageException.IsolatedStorageException(SerializationInfo, StreamingContext)
- System.IO.PathTooLongException.PathTooLongException(SerializationInfo, StreamingContext)
System.Management namespace
- System.Management.ManagementBaseObject.ManagementBaseObject(SerializationInfo, StreamingContext)
- System.Management.ManagementClass.ManagementClass(SerializationInfo, StreamingContext)
- System.Management.ManagementException.ManagementException(SerializationInfo, StreamingContext)
- System.Management.ManagementException.GetObjectData(SerializationInfo, StreamingContext)
- System.Management.ManagementNamedValueCollection.ManagementNamedValueCollection(SerializationInfo, StreamingContext)
System.Media namespace
System.Net namespace
- System.Net.CookieException.CookieException(SerializationInfo, StreamingContext)
- System.Net.CookieException.GetObjectData(SerializationInfo, StreamingContext)
- System.Net.FileWebRequest.FileWebRequest(SerializationInfo, StreamingContext)
- System.Net.FileWebResponse.FileWebResponse(SerializationInfo, StreamingContext)
- System.Net.HttpListenerException.HttpListenerException(SerializationInfo, StreamingContext)
- System.Net.HttpWebRequest.HttpWebRequest(SerializationInfo, StreamingContext)
- System.Net.HttpWebResponse.HttpWebResponse(SerializationInfo, StreamingContext)
- System.Net.ProtocolViolationException.ProtocolViolationException(SerializationInfo, StreamingContext)
- System.Net.ProtocolViolationException.GetObjectData(SerializationInfo, StreamingContext)
- System.Net.WebException.WebException(SerializationInfo, StreamingContext)
- System.Net.WebException.GetObjectData(SerializationInfo, StreamingContext)
- System.Net.WebHeaderCollection.WebHeaderCollection(SerializationInfo, StreamingContext)
- System.Net.WebHeaderCollection.GetObjectData(SerializationInfo, StreamingContext)
- System.Net.WebRequest.WebRequest(SerializationInfo, StreamingContext)
- System.Net.WebResponse.WebResponse(SerializationInfo, StreamingContext)
System.Net.Mail namespace
- System.Net.Mail.SmtpException.SmtpException(SerializationInfo, StreamingContext)
- System.Net.Mail.SmtpException.GetObjectData(SerializationInfo, StreamingContext)
- System.Net.Mail.SmtpFailedRecipientException.SmtpFailedRecipientException(SerializationInfo, StreamingContext)
- System.Net.Mail.SmtpFailedRecipientException.GetObjectData(SerializationInfo, StreamingContext)
- System.Net.Mail.SmtpFailedRecipientsException.SmtpFailedRecipientsException(SerializationInfo, StreamingContext)
- System.Net.Mail.SmtpFailedRecipientsException.GetObjectData(SerializationInfo, StreamingContext)
System.Net.NetworkInformation namespace
- System.Net.NetworkInformation.NetworkInformationException.NetworkInformationException(SerializationInfo, StreamingContext)
- System.Net.NetworkInformation.PingException.PingException(SerializationInfo, StreamingContext)
System.Net.Sockets namespace
System.Reflection namespace
- System.Reflection.Assembly.GetObjectData(SerializationInfo, StreamingContext)
- System.Reflection.AssemblyName.GetObjectData(SerializationInfo, StreamingContext)
- System.Reflection.CustomAttributeFormatException.CustomAttributeFormatException(SerializationInfo, StreamingContext)
- System.Reflection.InvalidFilterCriteriaException.InvalidFilterCriteriaException(SerializationInfo, StreamingContext)
- System.Reflection.Module.GetObjectData(SerializationInfo, StreamingContext)
- System.Reflection.ParameterInfo.GetRealObject(StreamingContext)
- System.Reflection.ReflectionTypeLoadException.GetObjectData(SerializationInfo, StreamingContext)
- System.Reflection.StrongNameKeyPair.StrongNameKeyPair(SerializationInfo, StreamingContext)
- System.Reflection.TargetException.TargetException(SerializationInfo, StreamingContext)
System.Reflection.Metadata namespace
System.Resources namespace
- System.Resources.MissingManifestResourceException.MissingManifestResourceException(SerializationInfo, StreamingContext)
- System.Resources.MissingSatelliteAssemblyException.MissingSatelliteAssemblyException(SerializationInfo, StreamingContext)
System.Runtime.CompilerServices namespace
- System.Runtime.CompilerServices.RuntimeWrappedException.GetObjectData(SerializationInfo, StreamingContext)
- System.Runtime.CompilerServices.SwitchExpressionException.GetObjectData(SerializationInfo, StreamingContext)
System.Runtime.InteropServices namespace
- System.Runtime.InteropServices.ExternalException.ExternalException(SerializationInfo, StreamingContext)
- System.Runtime.Serialization.SerializationException.SerializationException(SerializationInfo, StreamingContext)
System.Runtime.Serialization namespace
System.Security namespace
- System.Security.HostProtectionException.HostProtectionException(SerializationInfo, StreamingContext)
- System.Security.SecurityException.SecurityException(SerializationInfo, StreamingContext)
- System.Security.SecurityException.GetObjectData(SerializationInfo, StreamingContext)
- System.Security.VerificationException.VerificationException(SerializationInfo, StreamingContext)
System.Security.AccessControl namespace
System.Security.Authentication namespace
- System.Security.Authentication.InvalidCredentialException.InvalidCredentialException(SerializationInfo, StreamingContext)
- System.Security.Authentication.ExtendedProtection.ExtendedProtectionPolicy.ExtendedProtectionPolicy(SerializationInfo, StreamingContext)
System.Security.Claims namespace
- System.Security.Claims.ClaimsIdentity.ClaimsIdentity(SerializationInfo)
- System.Security.Claims.ClaimsIdentity.ClaimsIdentity(SerializationInfo, StreamingContext)
- System.Security.Claims.ClaimsPrincipal.ClaimsPrincipal(SerializationInfo, StreamingContext)
System.Security.Cryptography namespace
- System.Security.Cryptography.CryptographicException.CryptographicException(SerializationInfo, StreamingContext)
- System.Security.Cryptography.CryptographicUnexpectedOperationException.CryptographicUnexpectedOperationException(SerializationInfo, StreamingContext)
- System.Security.Cryptography.X509Certificates.X509Certificate.X509Certificate(SerializationInfo, StreamingContext)
- System.Security.Cryptography.X509Certificates.X509Certificate2.X509Certificate2(SerializationInfo, StreamingContext)
System.Security.Policy namespace
- System.Security.Policy.Hash.GetObjectData(SerializationInfo, StreamingContext)
- System.Security.Policy.PolicyException.PolicyException(SerializationInfo, StreamingContext)
System.Security.Principal namespace
- System.Security.Principal.IdentityNotMappedException.GetObjectData(SerializationInfo, StreamingContext)
- System.Security.Principal.WindowsIdentity.WindowsIdentity(SerializationInfo, StreamingContext)
System.Text.Json namespace
- System.Text.Json.JsonException.JsonException(SerializationInfo, StreamingContext)
- System.Text.Json.JsonException.GetObjectData(SerializationInfo, StreamingContext)
System.Text.RegularExpressions namespace
- System.Text.RegularExpressions.RegexMatchTimeoutException.RegexMatchTimeoutException(SerializationInfo, StreamingContext)
- System.Text.RegularExpressions.RegexParseException.GetObjectData(SerializationInfo, StreamingContext)
System.Threading namespace
- System.Threading.CompressedStack.GetObjectData(SerializationInfo, StreamingContext)
- System.Threading.ThreadInterruptedException.ThreadInterruptedException(SerializationInfo, StreamingContext)
- System.Threading.ThreadStateException.ThreadStateException(SerializationInfo, StreamingContext)
- System.Threading.BarrierPostPhaseException.BarrierPostPhaseException(SerializationInfo, StreamingContext)
- System.Threading.AbandonedMutexException.AbandonedMutexException(SerializationInfo, StreamingContext)
- System.Threading.ExecutionContext.GetObjectData(SerializationInfo, StreamingContext)
- System.Threading.LockRecursionException.LockRecursionException(SerializationInfo, StreamingContext)
- System.Threading.SemaphoreFullException.SemaphoreFullException(SerializationInfo, StreamingContext)
- System.Threading.SynchronizationLockException.SynchronizationLockException(SerializationInfo, StreamingContext)
- System.Threading.WaitHandleCannotBeOpenedException.WaitHandleCannotBeOpenedException(SerializationInfo, StreamingContext)
System.Threading.Channels namespace
System.Threading.Tasks namespace
- System.Threading.Tasks.TaskCanceledException.TaskCanceledException(SerializationInfo, StreamingContext)
- System.Threading.Tasks.TaskSchedulerException.TaskSchedulerException(SerializationInfo, StreamingContext)
System.Transactions namespace
- System.Transactions.TransactionAbortedException.TransactionAbortedException(SerializationInfo, StreamingContext)
- System.Transactions.TransactionException.TransactionException(SerializationInfo, StreamingContext)
- System.Transactions.TransactionInDoubtException.TransactionInDoubtException(SerializationInfo, StreamingContext)
- System.Transactions.TransactionManagerCommunicationException.TransactionManagerCommunicationException(SerializationInfo, StreamingContext)
- System.Transactions.TransactionPromotionException.TransactionPromotionException(SerializationInfo, StreamingContext)
System.Xml namespace
- System.Xml.XmlException.XmlException(SerializationInfo, StreamingContext)
- System.Xml.XmlException.GetObjectData(SerializationInfo, StreamingContext)
System.Xml.Schema namespace
- System.Xml.Schema.XmlSchemaException.XmlSchemaException(SerializationInfo, StreamingContext)
- System.Xml.Schema.XmlSchemaException.GetObjectData(SerializationInfo, StreamingContext)
- System.Xml.Schema.XmlSchemaInferenceException.XmlSchemaInferenceException(SerializationInfo, StreamingContext)
- System.Xml.Schema.XmlSchemaInferenceException.GetObjectData(SerializationInfo, StreamingContext)
- System.Xml.Schema.XmlSchemaValidationException.XmlSchemaValidationException(SerializationInfo, StreamingContext)
- System.Xml.Schema.XmlSchemaValidationException.GetObjectData(SerializationInfo, StreamingContext)
System.Xml.XPath namespace
- System.Xml.XPath.XPathException.XPathException(SerializationInfo, StreamingContext)
- System.Xml.XPath.XPathException.GetObjectData(SerializationInfo, StreamingContext)
System.Xml.Xsl namespace
- System.Xml.Xsl.XsltCompileException.XsltCompileException(SerializationInfo, StreamingContext)
- System.Xml.Xsl.XsltCompileException.GetObjectData(SerializationInfo, StreamingContext)
- System.Xml.Xsl.XsltException.XsltException(SerializationInfo, StreamingContext)
- System.Xml.Xsl.XsltException.GetObjectData(SerializationInfo, StreamingContext)
SYSLIB0052
- System.Text.RegularExpressions.Regex.InitializeReferences()
- System.Text.RegularExpressions.Regex.UseOptionC()
- System.Text.RegularExpressions.Regex.UseOptionR()
- System.Text.RegularExpressions.RegexRunner.CharInSet(Char, String, String)
- System.Text.RegularExpressions.RegexRunner.Scan(Regex, String, Int32, Int32, Int32, Int32, Boolean)
- System.Text.RegularExpressions.RegexRunner.Scan(Regex, String, Int32, Int32, Int32, Int32, Boolean, TimeSpan)
SYSLIB0053
See also
- API obsoletions with non-default diagnostic IDs (.NET 10)
- API obsoletions with non-default diagnostic IDs (.NET 9)
- API obsoletions with non-default diagnostic IDs (.NET 7)
- API obsoletions with non-default diagnostic IDs (.NET 6)
- API obsoletions with non-default diagnostic IDs (.NET 5)
- Obsolete features in .NET 5+