Sdílet prostřednictvím


Rozhraní API, která vždy vyvolávají výjimky v .NET (Core)

Následující rozhraní API vždy vyvolává výjimku v .NET (Core) na všech nebo na podmnožině platforem. Ve většině případů je vyvolána výjimka PlatformNotSupportedException.

Tento článek uspořádá ovlivněná rozhraní API podle názvů oborů.

Poznámka:

  • Tento článek je probíhající. Nejedná se o úplný seznam rozhraní API, která vyvolají výjimky v .NET 5 nebo novějším.
  • Tento článek neobsahuje explicitní implementace rozhraní pro binární serializaci, které vyvolá rozhraní .NET 5+. Další informace naleznete v tématu Binární serializace v .NET Core.

Systém

Člen Platformy, které vyhazují
AppDomain.CreateDomain Všechno
AppDomain.ExecuteAssembly(String, String[], Byte[], AssemblyHashAlgorithm) Všechno
AppDomain.Unload(AppDomain) Všechno
Console.CapsLock Linux a macOS
Console.NumberLock Linux a macOS
Delegate.GetObjectData(SerializationInfo, StreamingContext) Všechno
Exception.SerializeObjectState Všechno
MarshalByRefObject.GetLifetimeService() Všechno
MarshalByRefObject.InitializeLifetimeService() Všechno
OperatingSystem.GetObjectData(SerializationInfo, StreamingContext) Všechno
Type.ReflectionOnlyGetType(String, Boolean, Boolean) Všechno

System.CodeDom.Compiler

Člen Platformy, které vyhazují
CodeDomProvider.CompileAssemblyFromDom Všechno
CodeDomProvider.CompileAssemblyFromFile Všechno
CodeDomProvider.CompileAssemblyFromSource Všechno

System.Collections.Specialized

Člen Platformy, které vyhazují
NameObjectCollectionBase(SerializationInfo, StreamingContext) Všechno
NameObjectCollectionBase.GetObjectData(SerializationInfo, StreamingContext) Všechno
NameObjectCollectionBase.OnDeserialization(Object) Všechno

System.Configuration

Člen Platformy, které vyhazují
System.Configuration.RsaProtectedConfigurationProvider (všichni členové) Všechno

System.Console

Člen Platformy, které vyhazují
Console.Beep() Linux a macOS
Console.BufferHeight (pouze nastavit) Linux a macOS
Console.BufferWidth (pouze nastavit) Linux a macOS
Console.CursorSize (pouze nastavit) Linux a macOS
Console.CursorVisible (získat pouze) Linux a macOS
Console.MoveBufferArea Linux a macOS
Console.SetWindowPosition Linux a macOS
Console.SetWindowSize Linux a macOS
Console.Title (získat pouze) Linux a macOS
Console.WindowHeight (pouze nastavit) Linux a macOS
Console.WindowLeft (pouze nastavit) Linux a macOS
Console.WindowTop (pouze nastavit) Linux a macOS
Console.WindowWidth (pouze nastavit) Linux a macOS

System.Data.Common

Člen Platformy, které vyhazují
DbDataReader.GetSchemaTable (vyvolá NotSupportedException) Všechno

System.Diagnostics.Process

Člen Platformy, které vyhazují
Process.MaxWorkingSet (pouze nastavit) Operační systém Linux
Process.MinWorkingSet (pouze nastavit) Operační systém Linux
Process.ProcessorAffinity macOS
Process.MainWindowHandle Linux a macOS
Process.Start(String, String, String, SecureString, String) Linux a macOS
Process.Start(String, String, SecureString, String) Linux a macOS
ProcessStartInfo.UserName Linux a macOS
ProcessStartInfo.PasswordInClearText Linux a macOS
ProcessStartInfo.Domain Linux a macOS
ProcessStartInfo.LoadUserProfile Linux a macOS
ProcessThread.BasePriority (pouze nastavit) Linux a macOS
ProcessThread.BasePriority (získat pouze) macOS
ProcessThread.ProcessorAffinity (pouze nastavit) Linux a macOS

System.IO

Člen Platformy, které vyhazují
FileSystemInfo(SerializationInfo, StreamingContext) Všechno
FileSystemInfo.GetObjectData(SerializationInfo, StreamingContext) Všechno

System.IO.Pipes

Člen Platformy, které vyhazují
NamedPipeClientStream.NumberOfServerInstances Linux a macOS
NamedPipeServerStream.GetImpersonationUserName() Linux a macOS
PipeStream.InBufferSize Linux a macOS
PipeStream.OutBufferSize Linux a macOS
PipeStream.ReadMode (pouze nastavit) Linux a macOS
PipeStream.WaitForPipeDrain() Linux a macOS

System.Media

Člen Platformy, které vyhazují
SoundPlayer(SerializationInfo, StreamingContext) Všechno

System.Net

Člen Platformy, které vyhazují
System.Net.AuthenticationManager* Všechno
AuthenticationManager.Authenticate(String, WebRequest, ICredentials) Všechno
AuthenticationManager.PreAuthenticate(WebRequest, ICredentials) Všechno
FileWebRequest(SerializationInfo, StreamingContext) Všechno
FileWebRequest.GetObjectData(SerializationInfo, StreamingContext) Všechno
FileWebResponse(SerializationInfo, StreamingContext) Všechno
FileWebResponse.GetObjectData(SerializationInfo, StreamingContext) Všechno
HttpWebRequest(SerializationInfo, StreamingContext) Všechno
HttpWebRequest.GetObjectData(SerializationInfo, StreamingContext) Všechno
HttpWebResponse(SerializationInfo, StreamingContext) Všechno
HttpWebResponse.GetObjectData(SerializationInfo, StreamingContext) Všechno
WebProxy(SerializationInfo, StreamingContext) Všechno
WebProxy.GetDefaultProxy() Všechno
WebProxy.GetObjectData Všechno
WebRequest(SerializationInfo, StreamingContext) Všechno
WebRequest.GetObjectData(SerializationInfo, StreamingContext) Všechno
WebResponse(SerializationInfo, StreamingContext) Všechno
WebResponse.GetObjectData(SerializationInfo, StreamingContext) Všechno

* .NET 9 a novější verze.

System.Net.NetworkInformation

Člen Platformy, které vyhazují
Ping.Send Windows (UPW)

System.Net.Sockets

Člen Platformy, které vyhazují
Socket(SocketInformation) Všechno
Socket.DuplicateAndClose(Int32) Všechno

System.Net.WebSockets

Člen Platformy, které vyhazují
WebSocket.RegisterPrefixes() Všechno

System.Reflection

Člen Platformy, které vyhazují
Assembly.CodeBase Všechno
Assembly.EscapedCodeBase Všechno
Assembly.LoadFrom(String, Byte[], AssemblyHashAlgorithm) Všechno
Assembly.ReflectionOnlyLoad Všechno
Assembly.ReflectionOnlyLoadFrom(String) Všechno
AssemblyName.GetObjectData(SerializationInfo, StreamingContext) Všechno
AssemblyName.KeyPair Všechno
AssemblyName.OnDeserialization(Object) Všechno
StrongNameKeyPair Všechno
StrongNameKeyPair.PublicKey Všechno

System.Runtime.CompilerServices

Člen Platformy, které vyhazují
DebugInfoGenerator.CreatePdbGenerator() Všechno

System.Runtime.InteropServices

Člen Platformy, které vyhazují
IDispatchImplAttribute Všechno
Marshal.GetIDispatchForObject(Object) Všechno
RuntimeEnvironment.SystemConfigurationFile Všechno
RuntimeEnvironment.GetRuntimeInterfaceAsIntPtr(Guid, Guid) Všechno
RuntimeEnvironment.GetRuntimeInterfaceAsObject(Guid, Guid) Všechno
WindowsRuntimeMarshal.StringToHString(String) Linux a macOS
WindowsRuntimeMarshal.PtrToStringHString(IntPtr) Linux a macOS
WindowsRuntimeMarshal.FreeHString(IntPtr) Linux a macOS

System.Runtime.Serialization

Člen Platformy, které vyhazují
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream, Object)* Všechno
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream, Object) Všechno
BinaryFormatter.Deserialize(Stream) Všechno
XsdDataContractExporter.Schemas Všechno

* .NET 9 a novější verze. † .NET 8 pouze pro všechny typy projektů kromě modelu Windows Forms a WPF.

System.Security

Člen Platformy, které vyhazují
CodeAccessPermission.Deny() Všechno
CodeAccessPermission.PermitOnly() Všechno
PermissionSet.ConvertPermissionSet(String, Byte[], String) Všechno
PermissionSet.Deny() Všechno
PermissionSet.PermitOnly() Všechno
SecurityContext.Capture() Všechno
SecurityContext.CreateCopy() Všechno
SecurityContext.Dispose() Všechno
SecurityContext.IsFlowSuppressed() Všechno
SecurityContext.IsWindowsIdentityFlowSuppressed() Všechno
SecurityContext.RestoreFlow() Všechno
SecurityContext.Run(SecurityContext, ContextCallback, Object) Všechno
SecurityContext.SuppressFlow() Všechno
SecurityContext.SuppressFlowWindowsIdentity() Všechno

System.Security.Claims

Člen Platformy, které vyhazují
ClaimsPrincipal(SerializationInfo, StreamingContext) Všechno
ClaimsPrincipal.GetObjectData(SerializationInfo, StreamingContext) Všechno
ClaimsIdentity(SerializationInfo) Všechno
ClaimsIdentity(SerializationInfo, StreamingContext) Všechno
ClaimsIdentity.GetObjectData(SerializationInfo, StreamingContext) Všechno

System.Security.Cryptography

Člen Platformy, které vyhazují
AesCcm macOS
AsymmetricAlgorithm.Create(String) Všechno
System.Security.Cryptography.CngAlgorithm Linux a macOS
System.Security.Cryptography.CngAlgorithmGroup Linux a macOS
System.Security.Cryptography.CngKey Linux a macOS
System.Security.Cryptography.CngKeyBlobFormat Linux a macOS
System.Security.Cryptography.CngKeyCreationParameters Linux a macOS
System.Security.Cryptography.CngProvider Linux a macOS
System.Security.Cryptography.CngUIPolicy Linux a macOS
CryptoConfig.EncodeOID(String) Všechno
CspKeyContainerInfo Linux a macOS
CspKeyContainerInfo.Accessible Linux a macOS
CspKeyContainerInfo.Exportable Linux a macOS
CspKeyContainerInfo.HardwareDevice Linux a macOS
CspKeyContainerInfo.KeyContainerName Linux a macOS
CspKeyContainerInfo.KeyNumber Linux a macOS
CspKeyContainerInfo.MachineKeyStore Linux a macOS
CspKeyContainerInfo.Protected Linux a macOS
CspKeyContainerInfo.ProviderName Linux a macOS
CspKeyContainerInfo.ProviderType Linux a macOS
CspKeyContainerInfo.RandomlyGenerated Linux a macOS
CspKeyContainerInfo.Removable Linux a macOS
CspKeyContainerInfo.UniqueKeyContainerName Linux a macOS
DSAOpenSsl macOS
ECDiffieHellmanCng.FromXmlString(String, ECKeyXmlFormat) Všechno
ECDiffieHellmanCng.ToXmlString(ECKeyXmlFormat) Všechno
ECDiffieHellmanCngPublicKey.FromXmlString(String) Všechno
ECDiffieHellmanCngPublicKey.ToXmlString() Všechno
ECDiffieHellmanOpenSsl macOS
ECDiffieHellmanPublicKey.ToByteArray() Linux a macOS
ECDiffieHellmanPublicKey.ToXmlString() Všechno
ECDsaCng.FromXmlString(String, ECKeyXmlFormat) Všechno
ECDsaCng.ToXmlString(ECKeyXmlFormat) Všechno
ECDsaOpenSsl macOS
HashAlgorithm.Create() Všechno
HMAC.Create() Všechno
HMAC.Create(String) Všechno
HMAC.HashCore Všechno
HMAC.HashFinal Všechno
HMAC.Initialize Všechno
KeyedHashAlgorithm.Create() Všechno
KeyedHashAlgorithm.Create(String) Všechno
ProtectedData.Protect Linux a macOS
ProtectedData.Unprotect Linux a macOS
System.Security.Cryptography.RSACryptoServiceProvider.DecryptValue(Byte[]) Všechno
System.Security.Cryptography.RSACryptoServiceProvider.EncryptValue(Byte[]) Všechno
RSAOpenSsl macOS
System.Security.Cryptography.RSA.DecryptValue(Byte[]) Všechno
System.Security.Cryptography.RSA.EncryptValue(Byte[]) Všechno
RSA.FromXmlString Všechno
RSA.ToXmlString Všechno
System.Security.Cryptography.SafeEvpPKeyHandle macOS
SymmetricAlgorithm.Create() Všechno
SymmetricAlgorithm.Create(String) Všechno

System.Security.Cryptography.Pkcs

Člen Platformy, které vyhazují
CmsSigner(CspParameters) Všechno
SignerInfo.ComputeCounterSignature() Všechno

System.Security.Cryptography.X509Certificates

Člen Platformy, které vyhazují
X509Certificate(SerializationInfo, StreamingContext) Všechno
X509Certificate.Import Všechno
X509Certificate2(SerializationInfo, StreamingContext) Všechno
X509Certificate2.PrivateKey (pouze nastavit) Všechno

System.Security.Authentication.RozšířenáOchrana

Člen Platformy, které vyhazují
ExtendedProtectionPolicy(SerializationInfo, StreamingContext) Všechno

System.Security.Policy

Člen Platformy, které vyhazují
Hash.GetObjectData(SerializationInfo, StreamingContext) Všechno

System.ServiceProcess.ServiceController

Člen Platformy, které vyhazují
TimeoutException(SerializationInfo, StreamingContext) Všechno

System.Text.RegularExpressions

Člen Platformy, které vyhazují
Regex.CompileToAssembly Všechno

System.Threading

Člen Platformy, které vyhazují
CompressedStack.GetObjectData(SerializationInfo, StreamingContext) Všechno
ExecutionContext.GetObjectData(SerializationInfo, StreamingContext) Všechno
Thread.Abort Všechno
Thread.ResetAbort() Všechno
Thread.Resume() Všechno
Thread.Suspend() Všechno

System.Xml

Člen Platformy, které vyhazují
XmlDictionaryReader.CreateMtomReader(Byte[], Int32, Int32, Encoding[], String, XmlDictionaryReaderQuotas, Int32, OnXmlDictionaryReaderClose) Všechno
XmlDictionaryReader.CreateMtomReader(Stream, Encoding[], String, XmlDictionaryReaderQuotas, Int32, OnXmlDictionaryReaderClose) Všechno
XmlDictionaryWriter.CreateMtomWriter(Stream, Encoding, Int32, String, String, String, Boolean, Boolean) Všechno
XsltSettings.EnableScript (při nastavení na truehodnotu ) Všechno

Viz také