다음을 통해 공유


.NET Core와 .NET 5 이상의 환경에서 항상 예외를 발생시키는 API

다음 API는 플랫폼의 전체 또는 하위 집합에서 항상 .NET(Core)에서 예외를 throw합니다. 대부분의 경우 throw되는 예외는 PlatformNotSupportedException입니다.

이 문서에서는 영향을 받는 API를 네임스페이스별로 구성합니다.

비고

  • 이 문서는 진행 중인 작업입니다. .NET 5 이상에서 예외를 throw하는 전체 API 목록은 아닙니다.
  • 이 문서에는 .NET 5 이상에서 throw되는 이진 serialization에 대한 명시적 인터페이스 구현이 포함되어 있지 않습니다. 자세한 내용은 .NET Core의 이진 직렬화를 확인하세요.

시스템

회원 플랫폼이 던지는
AppDomain.CreateDomain 모두
AppDomain.ExecuteAssembly(String, String[], Byte[], AssemblyHashAlgorithm) 모두
AppDomain.Unload(AppDomain) 모두
Console.CapsLock Linux 및 macOS
Console.NumberLock Linux 및 macOS
Delegate.GetObjectData(SerializationInfo, StreamingContext) 모두
Exception.SerializeObjectState 모두
MarshalByRefObject.GetLifetimeService() 모두
MarshalByRefObject.InitializeLifetimeService() 모두
OperatingSystem.GetObjectData(SerializationInfo, StreamingContext) 모두
Type.ReflectionOnlyGetType(String, Boolean, Boolean) 모두

System.CodeDom.Compiler

회원 플랫폼이 던지는
CodeDomProvider.CompileAssemblyFromDom 모두
CodeDomProvider.CompileAssemblyFromFile 모두
CodeDomProvider.CompileAssemblyFromSource 모두

System.Collections.Specialized

회원 플랫폼이 던지는
NameObjectCollectionBase(SerializationInfo, StreamingContext) 모두
NameObjectCollectionBase.GetObjectData(SerializationInfo, StreamingContext) 모두
NameObjectCollectionBase.OnDeserialization(Object) 모두

System.Configuration

회원 플랫폼이 던지는
System.Configuration.RsaProtectedConfigurationProvider (모든 멤버) 모두

System.Console

회원 플랫폼이 던지는
Console.Beep() Linux 및 macOS
Console.BufferHeight (설정만) Linux 및 macOS
Console.BufferWidth (설정만) Linux 및 macOS
Console.CursorSize (설정만) Linux 및 macOS
Console.CursorVisible (가져오기 전용) Linux 및 macOS
Console.MoveBufferArea Linux 및 macOS
Console.SetWindowPosition Linux 및 macOS
Console.SetWindowSize Linux 및 macOS
Console.Title (가져오기 전용) Linux 및 macOS
Console.WindowHeight (설정만) Linux 및 macOS
Console.WindowLeft (설정만) Linux 및 macOS
Console.WindowTop (설정만) Linux 및 macOS
Console.WindowWidth (설정만) Linux 및 macOS

System.Data.Common

회원 플랫폼이 던지는
DbDataReader.GetSchemaTable (던짐 NotSupportedException) 모두

System.Diagnostics.Process (프로세스 진단)

회원 플랫폼이 던지는
Process.MaxWorkingSet (설정만) 리눅스
Process.MinWorkingSet (설정만) 리눅스
Process.ProcessorAffinity macOS
Process.MainWindowHandle Linux 및 macOS
Process.Start(String, String, String, SecureString, String) Linux 및 macOS
Process.Start(String, String, SecureString, String) Linux 및 macOS
ProcessStartInfo.UserName Linux 및 macOS
ProcessStartInfo.PasswordInClearText Linux 및 macOS
ProcessStartInfo.Domain Linux 및 macOS
ProcessStartInfo.LoadUserProfile Linux 및 macOS
ProcessThread.BasePriority (설정만) Linux 및 macOS
ProcessThread.BasePriority (가져오기 전용) macOS
ProcessThread.ProcessorAffinity (설정만) Linux 및 macOS

System.IO

회원 플랫폼이 던지는
FileSystemInfo(SerializationInfo, StreamingContext) 모두
FileSystemInfo.GetObjectData(SerializationInfo, StreamingContext) 모두

System.IO.Pipes

회원 플랫폼이 던지는
NamedPipeClientStream.NumberOfServerInstances Linux 및 macOS
NamedPipeServerStream.GetImpersonationUserName() Linux 및 macOS
PipeStream.InBufferSize Linux 및 macOS
PipeStream.OutBufferSize Linux 및 macOS
PipeStream.ReadMode (설정만) Linux 및 macOS
PipeStream.WaitForPipeDrain() Linux 및 macOS

System.Media

회원 플랫폼이 던지는
SoundPlayer(SerializationInfo, StreamingContext) 모두

System.Net

회원 플랫폼이 던지는
System.Net.AuthenticationManager* 모두
AuthenticationManager.Authenticate(String, WebRequest, ICredentials) 모두
AuthenticationManager.PreAuthenticate(WebRequest, ICredentials) 모두
FileWebRequest(SerializationInfo, StreamingContext) 모두
FileWebRequest.GetObjectData(SerializationInfo, StreamingContext) 모두
FileWebResponse(SerializationInfo, StreamingContext) 모두
FileWebResponse.GetObjectData(SerializationInfo, StreamingContext) 모두
HttpWebRequest(SerializationInfo, StreamingContext) 모두
HttpWebRequest.GetObjectData(SerializationInfo, StreamingContext) 모두
HttpWebResponse(SerializationInfo, StreamingContext) 모두
HttpWebResponse.GetObjectData(SerializationInfo, StreamingContext) 모두
WebProxy(SerializationInfo, StreamingContext) 모두
WebProxy.GetDefaultProxy() 모두
WebProxy.GetObjectData 모두
WebRequest(SerializationInfo, StreamingContext) 모두
WebRequest.GetObjectData(SerializationInfo, StreamingContext) 모두
WebResponse(SerializationInfo, StreamingContext) 모두
WebResponse.GetObjectData(SerializationInfo, StreamingContext) 모두

* .NET 9 이상 버전.

System.Net.NetworkInformation

회원 플랫폼이 던지는
Ping.Send Windows(UWP)

System.Net.Sockets

회원 플랫폼이 던지는
Socket(SocketInformation) 모두
Socket.DuplicateAndClose(Int32) 모두

System.Net.WebSockets

회원 플랫폼이 던지는
WebSocket.RegisterPrefixes() 모두

System.Reflection

회원 플랫폼이 던지는
Assembly.CodeBase 모두
Assembly.EscapedCodeBase 모두
Assembly.LoadFrom(String, Byte[], AssemblyHashAlgorithm) 모두
Assembly.ReflectionOnlyLoad 모두
Assembly.ReflectionOnlyLoadFrom(String) 모두
AssemblyName.GetObjectData(SerializationInfo, StreamingContext) 모두
AssemblyName.KeyPair 모두
AssemblyName.OnDeserialization(Object) 모두
StrongNameKeyPair 모두
StrongNameKeyPair.PublicKey 모두

System.Runtime.CompilerServices

회원 플랫폼이 던지는
DebugInfoGenerator.CreatePdbGenerator() 모두

System.Runtime.InteropServices

회원 플랫폼이 던지는
IDispatchImplAttribute 모두
Marshal.GetIDispatchForObject(Object) 모두
RuntimeEnvironment.SystemConfigurationFile 모두
RuntimeEnvironment.GetRuntimeInterfaceAsIntPtr(Guid, Guid) 모두
RuntimeEnvironment.GetRuntimeInterfaceAsObject(Guid, Guid) 모두
WindowsRuntimeMarshal.StringToHString(String) Linux 및 macOS
WindowsRuntimeMarshal.PtrToStringHString(IntPtr) Linux 및 macOS
WindowsRuntimeMarshal.FreeHString(IntPtr) Linux 및 macOS

System.Runtime.Serialization

회원 플랫폼이 던지는
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream, Object)* 모두
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream, Object) 모두
BinaryFormatter.Deserialize(Stream) 모두
XsdDataContractExporter.Schemas 모두

* .NET 9 이상 버전. Windows Forms 및 WPF를 제외한 모든 프로젝트 형식에 대해서만 .NET 8을 †.

System.Security (시스템.보안)

회원 플랫폼이 던지는
CodeAccessPermission.Deny() 모두
CodeAccessPermission.PermitOnly() 모두
PermissionSet.ConvertPermissionSet(String, Byte[], String) 모두
PermissionSet.Deny() 모두
PermissionSet.PermitOnly() 모두
SecurityContext.Capture() 모두
SecurityContext.CreateCopy() 모두
SecurityContext.Dispose() 모두
SecurityContext.IsFlowSuppressed() 모두
SecurityContext.IsWindowsIdentityFlowSuppressed() 모두
SecurityContext.RestoreFlow() 모두
SecurityContext.Run(SecurityContext, ContextCallback, Object) 모두
SecurityContext.SuppressFlow() 모두
SecurityContext.SuppressFlowWindowsIdentity() 모두

System.Security.Claims

회원 플랫폼이 던지는
ClaimsPrincipal(SerializationInfo, StreamingContext) 모두
ClaimsPrincipal.GetObjectData(SerializationInfo, StreamingContext) 모두
ClaimsIdentity(SerializationInfo) 모두
ClaimsIdentity(SerializationInfo, StreamingContext) 모두
ClaimsIdentity.GetObjectData(SerializationInfo, StreamingContext) 모두

System.Security.Cryptography

회원 플랫폼이 던지는
AsymmetricAlgorithm.Create(String) 모두
System.Security.Cryptography.CngAlgorithm Linux 및 macOS
System.Security.Cryptography.CngAlgorithmGroup Linux 및 macOS
System.Security.Cryptography.CngKey Linux 및 macOS
System.Security.Cryptography.CngKeyBlobFormat Linux 및 macOS
System.Security.Cryptography.CngKeyCreationParameters Linux 및 macOS
System.Security.Cryptography.CngProvider Linux 및 macOS
System.Security.Cryptography.CngUIPolicy Linux 및 macOS
CryptoConfig.EncodeOID(String) 모두
CspKeyContainerInfo Linux 및 macOS
CspKeyContainerInfo.Accessible Linux 및 macOS
CspKeyContainerInfo.Exportable Linux 및 macOS
CspKeyContainerInfo.HardwareDevice Linux 및 macOS
CspKeyContainerInfo.KeyContainerName Linux 및 macOS
CspKeyContainerInfo.KeyNumber Linux 및 macOS
CspKeyContainerInfo.MachineKeyStore Linux 및 macOS
CspKeyContainerInfo.Protected Linux 및 macOS
CspKeyContainerInfo.ProviderName Linux 및 macOS
CspKeyContainerInfo.ProviderType Linux 및 macOS
CspKeyContainerInfo.RandomlyGenerated Linux 및 macOS
CspKeyContainerInfo.Removable Linux 및 macOS
CspKeyContainerInfo.UniqueKeyContainerName Linux 및 macOS
ECDiffieHellmanCng.FromXmlString(String, ECKeyXmlFormat) 모두
ECDiffieHellmanCng.ToXmlString(ECKeyXmlFormat) 모두
ECDiffieHellmanCngPublicKey.FromXmlString(String) 모두
ECDiffieHellmanCngPublicKey.ToXmlString() 모두
ECDiffieHellmanPublicKey.ToByteArray() Linux 및 macOS
ECDiffieHellmanPublicKey.ToXmlString() 모두
ECDsaCng.FromXmlString(String, ECKeyXmlFormat) 모두
ECDsaCng.ToXmlString(ECKeyXmlFormat) 모두
HashAlgorithm.Create() 모두
HMAC.Create() 모두
HMAC.Create(String) 모두
HMAC.HashCore 모두
HMAC.HashFinal 모두
HMAC.Initialize 모두
KeyedHashAlgorithm.Create() 모두
KeyedHashAlgorithm.Create(String) 모두
ProtectedData.Protect Linux 및 macOS
ProtectedData.Unprotect Linux 및 macOS
System.Security.Cryptography.RSACryptoServiceProvider.DecryptValue(Byte[]) 모두
System.Security.Cryptography.RSACryptoServiceProvider.EncryptValue(Byte[]) 모두
System.Security.Cryptography.RSA.DecryptValue(Byte[]) 모두
System.Security.Cryptography.RSA.EncryptValue(Byte[]) 모두
RSA.FromXmlString 모두
RSA.ToXmlString 모두
SymmetricAlgorithm.Create() 모두
SymmetricAlgorithm.Create(String) 모두

System.Security.Cryptography.Pkcs

회원 플랫폼이 던지는
CmsSigner(CspParameters) 모두
SignerInfo.ComputeCounterSignature() 모두

System.Security.Cryptography.X509Certificates

회원 플랫폼이 던지는
X509Certificate(SerializationInfo, StreamingContext) 모두
X509Certificate.Import 모두
X509Certificate2(SerializationInfo, StreamingContext) 모두
X509Certificate2.PrivateKey (설정만) 모두

시스템.보안.인증.확장된보호

회원 플랫폼이 던지는
ExtendedProtectionPolicy(SerializationInfo, StreamingContext) 모두

System.Security.Policy

회원 플랫폼이 던지는
Hash.GetObjectData(SerializationInfo, StreamingContext) 모두

System.ServiceProcess.ServiceController

회원 플랫폼이 던지는
TimeoutException(SerializationInfo, StreamingContext) 모두

System.Text.RegularExpressions

회원 플랫폼이 던지는
Regex.CompileToAssembly 모두

System.Threading

회원 플랫폼이 던지는
CompressedStack.GetObjectData(SerializationInfo, StreamingContext) 모두
ExecutionContext.GetObjectData(SerializationInfo, StreamingContext) 모두
Thread.Abort 모두
Thread.ResetAbort() 모두
Thread.Resume() 모두
Thread.Suspend() 모두

System.Xml

회원 플랫폼이 던지는
XmlDictionaryReader.CreateMtomReader(Byte[], Int32, Int32, Encoding[], String, XmlDictionaryReaderQuotas, Int32, OnXmlDictionaryReaderClose) 모두
XmlDictionaryReader.CreateMtomReader(Stream, Encoding[], String, XmlDictionaryReaderQuotas, Int32, OnXmlDictionaryReaderClose) 모두
XmlDictionaryWriter.CreateMtomWriter(Stream, Encoding, Int32, String, String, String, Boolean, Boolean) 모두

참고하십시오