Share via


API's die altijd uitzonderingen genereren op .NET Core en .NET 5+

De volgende API's genereren altijd een uitzondering op .NET (Core) op alle platforms of een subset van platforms. In de meeste gevallen is PlatformNotSupportedExceptionde uitzondering die wordt gegenereerd.

In dit artikel worden de betrokken API's ingedeeld op naamruimte.

Notitie

  • Dit artikel is een werk in uitvoering. Het is geen volledige lijst met API's die uitzonderingen genereren op .NET 5+.
  • Dit artikel bevat geen expliciete interface-implementaties voor binaire serialisatie die .NET 5+ genereert. Zie Binaire serialisatie in .NET Core voor meer informatie.

Systeem

Lid Platforms die worden gegooid
AppDomain.CreateDomain Alle
AppDomain.ExecuteAssembly(String, String[], Byte[], AssemblyHashAlgorithm) Alle
AppDomain.Unload(AppDomain) Alle
Console.CapsLock Linux en macOS
Console.NumberLock Linux en macOS
Delegate.GetObjectData(SerializationInfo, StreamingContext) Alle
Exception.SerializeObjectState Alle
MarshalByRefObject.GetLifetimeService() Alle
MarshalByRefObject.InitializeLifetimeService() Alle
OperatingSystem.GetObjectData(SerializationInfo, StreamingContext) Alle
Type.ReflectionOnlyGetType(String, Boolean, Boolean) Alle

System.CodeDom.Compiler

Lid Platforms die worden gegooid
CodeDomProvider.CompileAssemblyFromDom Alle
CodeDomProvider.CompileAssemblyFromFile Alle
CodeDomProvider.CompileAssemblyFromSource Alle

System.Collections.Specialized

Lid Platforms die worden gegooid
NameObjectCollectionBase(SerializationInfo, StreamingContext) Alle
NameObjectCollectionBase.GetObjectData(SerializationInfo, StreamingContext) Alle
NameObjectCollectionBase.OnDeserialization(Object) Alle

System.Configuration

Lid Platforms die worden gegooid
System.Configuration.RsaProtectedConfigurationProvider (alle leden) Alle

System.Console

Lid Platforms die worden gegooid
Console.Beep() Linux en macOS
Console.BufferHeight (alleen instellen) Linux en macOS
Console.BufferWidth (alleen instellen) Linux en macOS
Console.CursorSize (alleen instellen) Linux en macOS
Console.CursorVisible (alleen downloaden) Linux en macOS
Console.MoveBufferArea Linux en macOS
Console.SetWindowPosition Linux en macOS
Console.SetWindowSize Linux en macOS
Console.Title (alleen downloaden) Linux en macOS
Console.WindowHeight (alleen instellen) Linux en macOS
Console.WindowLeft (alleen instellen) Linux en macOS
Console.WindowTop (alleen instellen) Linux en macOS
Console.WindowWidth (alleen instellen) Linux en macOS

System.Data.Common

Lid Platforms die worden gegooid
DbDataReader.GetSchemaTable(gooit )NotSupportedException Alle

System.Diagnostics.Process

Lid Platforms die worden gegooid
Process.MaxWorkingSet (alleen instellen) Linux
Process.MinWorkingSet (alleen instellen) Linux
Process.ProcessorAffinity macOS
Process.MainWindowHandle Linux en macOS
Process.Start(String, String, String, SecureString, String) Linux en macOS
Process.Start(String, String, SecureString, String) Linux en macOS
ProcessStartInfo.UserName Linux en macOS
ProcessStartInfo.PasswordInClearText Linux en macOS
ProcessStartInfo.Domain Linux en macOS
ProcessStartInfo.LoadUserProfile Linux en macOS
ProcessThread.BasePriority (alleen instellen) Linux en macOS
ProcessThread.BasePriority (alleen downloaden) macOS
ProcessThread.ProcessorAffinity (alleen instellen) Linux en macOS

System.IO

Lid Platforms die worden gegooid
FileSystemInfo(SerializationInfo, StreamingContext) Alle
FileSystemInfo.GetObjectData(SerializationInfo, StreamingContext) Alle

System.IO.Pipes

Lid Platforms die worden gegooid
NamedPipeClientStream.NumberOfServerInstances Linux en macOS
NamedPipeServerStream.GetImpersonationUserName() Linux en macOS
PipeStream.InBufferSize Linux en macOS
PipeStream.OutBufferSize Linux en macOS
PipeStream.ReadMode (alleen instellen) Linux en macOS
PipeStream.WaitForPipeDrain() Linux en macOS

System.Media

Lid Platforms die worden gegooid
SoundPlayer(SerializationInfo, StreamingContext) Alle

System.Net

Lid Platforms die worden gegooid
AuthenticationManager.Authenticate(String, WebRequest, ICredentials) Alle
AuthenticationManager.PreAuthenticate(WebRequest, ICredentials) Alle
FileWebRequest(SerializationInfo, StreamingContext) Alle
FileWebRequest.GetObjectData(SerializationInfo, StreamingContext) Alle
FileWebResponse(SerializationInfo, StreamingContext) Alle
FileWebResponse.GetObjectData(SerializationInfo, StreamingContext) Alle
HttpWebRequest(SerializationInfo, StreamingContext) Alle
HttpWebRequest.GetObjectData(SerializationInfo, StreamingContext) Alle
HttpWebResponse(SerializationInfo, StreamingContext) Alle
HttpWebResponse.GetObjectData(SerializationInfo, StreamingContext) Alle
WebProxy(SerializationInfo, StreamingContext) Alle
WebProxy.GetDefaultProxy() Alle
WebProxy.GetObjectData Alle
WebRequest(SerializationInfo, StreamingContext) Alle
WebRequest.GetObjectData(SerializationInfo, StreamingContext) Alle
WebResponse(SerializationInfo, StreamingContext) Alle
WebResponse.GetObjectData(SerializationInfo, StreamingContext) Alle

System.Net.NetworkInformation

Lid Platforms die worden gegooid
Ping.Send Windows (UWP)

System.Net.Sockets

Lid Platforms die worden gegooid
Socket(SocketInformation) Alle
Socket.DuplicateAndClose(Int32) Alle

System.Net.WebSockets

Lid Platforms die worden gegooid
WebSocket.RegisterPrefixes() Alle

System.Reflection

Lid Platforms die worden gegooid
Assembly.CodeBase Alle
Assembly.EscapedCodeBase Alle
Assembly.LoadFrom(String, Byte[], AssemblyHashAlgorithm) Alle
Assembly.ReflectionOnlyLoad Alle
Assembly.ReflectionOnlyLoadFrom(String) Alle
AssemblyName.GetObjectData(SerializationInfo, StreamingContext) Alle
AssemblyName.KeyPair Alle
AssemblyName.OnDeserialization(Object) Alle
StrongNameKeyPair Alle
StrongNameKeyPair.PublicKey Alle

System.Runtime.CompilerServices

Lid Platforms die worden gegooid
DebugInfoGenerator.CreatePdbGenerator() Alle

System.Runtime.InteropServices

Lid Platforms die worden gegooid
IDispatchImplAttribute Alle
Marshal.GetIDispatchForObject(Object) Alle
RuntimeEnvironment.SystemConfigurationFile Alle
RuntimeEnvironment.GetRuntimeInterfaceAsIntPtr(Guid, Guid) Alle
RuntimeEnvironment.GetRuntimeInterfaceAsObject(Guid, Guid) Alle
WindowsRuntimeMarshal.StringToHString(String) Linux en macOS
WindowsRuntimeMarshal.PtrToStringHString(IntPtr) Linux en macOS
WindowsRuntimeMarshal.FreeHString(IntPtr) Linux en macOS

System.Runtime.Serialization

Lid Platforms die worden gegooid
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream, Object)* Alle
BinaryFormatter.Deserialize(Stream)* Alle
XsdDataContractExporter.Schemas Alle

* .NET 8 en latere versies alleen voor alle projecttypen behalve Windows Forms en WPF.

System.Security

Lid Platforms die worden gegooid
CodeAccessPermission.Deny() Alle
CodeAccessPermission.PermitOnly() Alle
PermissionSet.ConvertPermissionSet(String, Byte[], String) Alle
PermissionSet.Deny() Alle
PermissionSet.PermitOnly() Alle
SecurityContext.Capture() Alle
SecurityContext.CreateCopy() Alle
SecurityContext.Dispose() Alle
SecurityContext.IsFlowSuppressed() Alle
SecurityContext.IsWindowsIdentityFlowSuppressed() Alle
SecurityContext.RestoreFlow() Alle
SecurityContext.Run(SecurityContext, ContextCallback, Object) Alle
SecurityContext.SuppressFlow() Alle
SecurityContext.SuppressFlowWindowsIdentity() Alle

System.Security.Claims

Lid Platforms die worden gegooid
ClaimsPrincipal(SerializationInfo, StreamingContext) Alle
ClaimsPrincipal.GetObjectData(SerializationInfo, StreamingContext) Alle
ClaimsIdentity(SerializationInfo) Alle
ClaimsIdentity(SerializationInfo, StreamingContext) Alle
ClaimsIdentity.GetObjectData(SerializationInfo, StreamingContext) Alle

System.Security.Cryptography

Lid Platforms die worden gegooid
AsymmetricAlgorithm.Create(String) Alle
System.Security.Cryptography.CngAlgorithm Linux en macOS
System.Security.Cryptography.CngAlgorithmGroup Linux en macOS
System.Security.Cryptography.CngKey Linux en macOS
System.Security.Cryptography.CngKeyBlobFormat Linux en macOS
System.Security.Cryptography.CngKeyCreationParameters Linux en macOS
System.Security.Cryptography.CngProvider Linux en macOS
System.Security.Cryptography.CngUIPolicy Linux en macOS
CryptoConfig.EncodeOID(String) Alle
CspKeyContainerInfo Linux en macOS
CspKeyContainerInfo.Accessible Linux en macOS
CspKeyContainerInfo.Exportable Linux en macOS
CspKeyContainerInfo.HardwareDevice Linux en macOS
CspKeyContainerInfo.KeyContainerName Linux en macOS
CspKeyContainerInfo.KeyNumber Linux en macOS
CspKeyContainerInfo.MachineKeyStore Linux en macOS
CspKeyContainerInfo.Protected Linux en macOS
CspKeyContainerInfo.ProviderName Linux en macOS
CspKeyContainerInfo.ProviderType Linux en macOS
CspKeyContainerInfo.RandomlyGenerated Linux en macOS
CspKeyContainerInfo.Removable Linux en macOS
CspKeyContainerInfo.UniqueKeyContainerName Linux en macOS
ECDiffieHellmanCng.FromXmlString(String, ECKeyXmlFormat) Alle
ECDiffieHellmanCng.ToXmlString(ECKeyXmlFormat) Alle
ECDiffieHellmanCngPublicKey.FromXmlString(String) Alle
ECDiffieHellmanCngPublicKey.ToXmlString() Alle
ECDiffieHellmanPublicKey.ToByteArray() Linux en macOS
ECDiffieHellmanPublicKey.ToXmlString() Alle
ECDsaCng.FromXmlString(String, ECKeyXmlFormat) Alle
ECDsaCng.ToXmlString(ECKeyXmlFormat) Alle
HashAlgorithm.Create() Alle
HMAC.Create() Alle
HMAC.Create(String) Alle
HMAC.HashCore Alle
HMAC.HashFinal Alle
HMAC.Initialize Alle
KeyedHashAlgorithm.Create() Alle
KeyedHashAlgorithm.Create(String) Alle
ProtectedData.Protect Linux en macOS
ProtectedData.Unprotect Linux en macOS
System.Security.Cryptography.RSACryptoServiceProvider.DecryptValue(Byte[]) Alle
System.Security.Cryptography.RSACryptoServiceProvider.EncryptValue(Byte[]) Alle
System.Security.Cryptography.RSA.DecryptValue(Byte[]) Alle
System.Security.Cryptography.RSA.EncryptValue(Byte[]) Alle
RSA.FromXmlString Alle
RSA.ToXmlString Alle
SymmetricAlgorithm.Create() Alle
SymmetricAlgorithm.Create(String) Alle

System.Security.Cryptography.Pkcs

Lid Platforms die worden gegooid
CmsSigner(CspParameters) Alle
SignerInfo.ComputeCounterSignature() Alle

System.Security.Cryptography.X509Certificates

Lid Platforms die worden gegooid
X509Certificate(SerializationInfo, StreamingContext) Alle
X509Certificate.Import Alle
X509Certificate2(SerializationInfo, StreamingContext) Alle
X509Certificate2.PrivateKey (alleen instellen) Alle

System.Security.Authentication.ExtendedProtection

Lid Platforms die worden gegooid
ExtendedProtectionPolicy(SerializationInfo, StreamingContext) Alle

System.Security.Policy

Lid Platforms die worden gegooid
Hash.GetObjectData(SerializationInfo, StreamingContext) Alle

System.ServiceProcess.ServiceController

Lid Platforms die worden gegooid
TimeoutException(SerializationInfo, StreamingContext) Alle

System.Text.RegularExpressions

Lid Platforms die worden gegooid
Regex.CompileToAssembly Alle

System.Threading

Lid Platforms die worden gegooid
CompressedStack.GetObjectData(SerializationInfo, StreamingContext) Alle
ExecutionContext.GetObjectData(SerializationInfo, StreamingContext) Alle
Thread.Abort Alle
Thread.ResetAbort() Alle
Thread.Resume() Alle
Thread.Suspend() Alle

System.Xml

Lid Platforms die worden gegooid
XmlDictionaryReader.CreateMtomReader(Byte[], Int32, Int32, Encoding[], String, XmlDictionaryReaderQuotas, Int32, OnXmlDictionaryReaderClose) Alle
XmlDictionaryReader.CreateMtomReader(Stream, Encoding[], String, XmlDictionaryReaderQuotas, Int32, OnXmlDictionaryReaderClose) Alle
XmlDictionaryWriter.CreateMtomWriter(Stream, Encoding, Int32, String, String, String, Boolean, Boolean) Alle

Zie ook