Rozhraní API, která vždy volají výjimky v .NET Core a .NET 5+

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

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

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émový

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

System.codedom.compiler

Člen Platformy, které vyvolává
CodeDomProvider.CompileAssemblyFromDom Vše
CodeDomProvider.CompileAssemblyFromFile Vše
CodeDomProvider.CompileAssemblyFromSource Vše

System.collections.specialized

Člen Platformy, které vyvolává
NameObjectCollectionBase(SerializationInfo, StreamingContext) Vše
NameObjectCollectionBase.GetObjectData(SerializationInfo, StreamingContext) Vše
NameObjectCollectionBase.OnDeserialization(Object) Vše

System.configuration

Člen Platformy, které vyvolává
System.Configuration.RsaProtectedConfigurationProvider (všichni členové) Vše

System.Console

Člen Platformy, které vyvolává
Console.Beep() Linux a macOS
Console.BufferHeight (jenom nastavit) Linux a macOS
Console.BufferWidth (jenom nastavit) Linux a macOS
Console.CursorSize (jenom 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 (jenom nastavit) Linux a macOS
Console.WindowLeft (jenom nastavit) Linux a macOS
Console.WindowTop (jenom nastavit) Linux a macOS
Console.WindowWidth (jenom nastavit) Linux a macOS

System.data.common

Člen Platformy, které vyvolává
DbDataReader.GetSchemaTable (vyvolá NotSupportedException) Vše

System.Diagnostics.Process

Člen Platformy, které vyvolává
Process.MaxWorkingSet (jenom nastavit) Linux
Process.MinWorkingSet (jenom nastavit) 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 (jenom nastavit) Linux a macOS
ProcessThread.BasePriority (získat pouze) macOS
ProcessThread.ProcessorAffinity (jenom nastavit) Linux a macOS

System.IO

Člen Platformy, které vyvolává
FileSystemInfo(SerializationInfo, StreamingContext) Vše
FileSystemInfo.GetObjectData(SerializationInfo, StreamingContext) Vše

System.io.pipes

Člen Platformy, které vyvolává
NamedPipeClientStream.NumberOfServerInstances Linux a macOS
NamedPipeServerStream.GetImpersonationUserName() Linux a macOS
PipeStream.InBufferSize Linux a macOS
PipeStream.OutBufferSize Linux a macOS
PipeStream.ReadMode (jenom nastavit) Linux a macOS
PipeStream.WaitForPipeDrain() Linux a macOS

System.media

Člen Platformy, které vyvolává
SoundPlayer(SerializationInfo, StreamingContext) Vše

System.Net

Člen Platformy, které vyvolává
AuthenticationManager.Authenticate(String, WebRequest, ICredentials) Vše
AuthenticationManager.PreAuthenticate(WebRequest, ICredentials) Vše
FileWebRequest(SerializationInfo, StreamingContext) Vše
FileWebRequest.GetObjectData(SerializationInfo, StreamingContext) Vše
FileWebResponse(SerializationInfo, StreamingContext) Vše
FileWebResponse.GetObjectData(SerializationInfo, StreamingContext) Vše
HttpWebRequest(SerializationInfo, StreamingContext) Vše
HttpWebRequest.GetObjectData(SerializationInfo, StreamingContext) Vše
HttpWebResponse(SerializationInfo, StreamingContext) Vše
HttpWebResponse.GetObjectData(SerializationInfo, StreamingContext) Vše
WebProxy(SerializationInfo, StreamingContext) Vše
WebProxy.GetDefaultProxy() Vše
WebProxy.GetObjectData Vše
WebRequest(SerializationInfo, StreamingContext) Vše
WebRequest.GetObjectData(SerializationInfo, StreamingContext) Vše
WebResponse(SerializationInfo, StreamingContext) Vše
WebResponse.GetObjectData(SerializationInfo, StreamingContext) Vše

System.net.networkinformation

Člen Platformy, které vyvolává
Ping.Send Windows (UWP)

System.net.sockets

Člen Platformy, které vyvolává
Socket(SocketInformation) Vše
Socket.DuplicateAndClose(Int32) Vše

System.Net.WebSockets

Člen Platformy, které vyvolává
WebSocket.RegisterPrefixes() Vše

Systému. Reflexe ion

Člen Platformy, které vyvolává
Assembly.CodeBase Vše
Assembly.EscapedCodeBase Vše
Assembly.ReflectionOnlyLoad Vše
Assembly.ReflectionOnlyLoadFrom(String) Vše
AssemblyName.GetObjectData(SerializationInfo, StreamingContext) Vše
AssemblyName.KeyPair Vše
AssemblyName.OnDeserialization(Object) Vše
StrongNameKeyPair Vše
StrongNameKeyPair.PublicKey Vše

System.runtime.compilerservices

Člen Platformy, které vyvolává
DebugInfoGenerator.CreatePdbGenerator() Vše

System.runtime.interopservices

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

System.Runtime.Serialization

Člen Platformy, které vyvolává
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream, Object)* Vše
BinaryFormatter.Deserialize(Stream)* Vše
XsdDataContractExporter.Schemas Vše

* .NET 8 a novější verze pouze pro všechny typy projektů s výjimkou model Windows Forms a WPF.

System.security

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

System.Security.Claims

Člen Platformy, které vyvolává
ClaimsPrincipal(SerializationInfo, StreamingContext) Vše
ClaimsPrincipal.GetObjectData(SerializationInfo, StreamingContext) Vše
ClaimsIdentity(SerializationInfo) Vše
ClaimsIdentity(SerializationInfo, StreamingContext) Vše
ClaimsIdentity.GetObjectData(SerializationInfo, StreamingContext) Vše

System.security.cryptography

Člen Platformy, které vyvolává
AsymmetricAlgorithm.Create(String) Vše
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še
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
ECDiffieHellmanCng.FromXmlString(String, ECKeyXmlFormat) Vše
ECDiffieHellmanCng.ToXmlString(ECKeyXmlFormat) Vše
ECDiffieHellmanCngPublicKey.FromXmlString(String) Vše
ECDiffieHellmanCngPublicKey.ToXmlString() Vše
ECDiffieHellmanPublicKey.ToByteArray() Linux a macOS
ECDiffieHellmanPublicKey.ToXmlString() Vše
ECDsaCng.FromXmlString(String, ECKeyXmlFormat) Vše
ECDsaCng.ToXmlString(ECKeyXmlFormat) Vše
HashAlgorithm.Create() Vše
HMAC.Create() Vše
HMAC.Create(String) Vše
HMAC.HashCore Vše
HMAC.HashFinal Vše
HMAC.Initialize Vše
KeyedHashAlgorithm.Create() Vše
KeyedHashAlgorithm.Create(String) Vše
ProtectedData.Protect Linux a macOS
ProtectedData.Unprotect Linux a macOS
System.Security.Cryptography.RSACryptoServiceProvider.DecryptValue(Byte[]) Vše
System.Security.Cryptography.RSACryptoServiceProvider.EncryptValue(Byte[]) Vše
System.Security.Cryptography.RSA.DecryptValue(Byte[]) Vše
System.Security.Cryptography.RSA.EncryptValue(Byte[]) Vše
RSA.FromXmlString Vše
RSA.ToXmlString Vše
SymmetricAlgorithm.Create() Vše
SymmetricAlgorithm.Create(String) Vše

System.security.cryptography.pkcs

Člen Platformy, které vyvolává
CmsSigner(CspParameters) Vše
SignerInfo.ComputeCounterSignature() Vše

System.Security.Cryptography.X509Certificates

Člen Platformy, které vyvolává
X509Certificate(SerializationInfo, StreamingContext) Vše
X509Certificate.Import Vše
X509Certificate2(SerializationInfo, StreamingContext) Vše
X509Certificate2.PrivateKey (jenom nastavit) Vše

System.Security.Authentication.ExtendedProtection

Člen Platformy, které vyvolává
ExtendedProtectionPolicy(SerializationInfo, StreamingContext) Vše

System.security.policy

Člen Platformy, které vyvolává
Hash.GetObjectData(SerializationInfo, StreamingContext) Vše

System.ServiceProcess.ServiceController

Člen Platformy, které vyvolává
TimeoutException(SerializationInfo, StreamingContext) Vše

System.Text.RegularExpressions

Člen Platformy, které vyvolává
Regex.CompileToAssembly Vše

System.threading

Člen Platformy, které vyvolává
CompressedStack.GetObjectData(SerializationInfo, StreamingContext) Vše
ExecutionContext.GetObjectData(SerializationInfo, StreamingContext) Vše
Thread.Abort Vše
Thread.ResetAbort() Vše
Thread.Resume() Vše
Thread.Suspend() Vše

System.Xml

Člen Platformy, které vyvolává
XmlDictionaryReader.CreateMtomReader(Byte[], Int32, Int32, Encoding[], String, XmlDictionaryReaderQuotas, Int32, OnXmlDictionaryReaderClose) Vše
XmlDictionaryReader.CreateMtomReader(Stream, Encoding[], String, XmlDictionaryReaderQuotas, Int32, OnXmlDictionaryReaderClose) Vše
XmlDictionaryWriter.CreateMtomWriter(Stream, Encoding, Int32, String, String, String, Boolean, Boolean) Vše

Viz také