Delen via


API's die altijd uitzonderingen genereren op .NET (Core)

De volgende API's genereren altijd een uitzondering op .NET (Core) op alle 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.

Opmerking

  • 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 gooien
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 gooien
CodeDomProvider.CompileAssemblyFromDom Alle
CodeDomProvider.CompileAssemblyFromFile Alle
CodeDomProvider.CompileAssemblyFromSource Alle

System.Collections.Specialized

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

System.Configuration

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

System.Console

Lid Platforms die gooien
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 verkrijgen) Linux en macOS
Console.MoveBufferArea Linux en macOS
Console.SetWindowPosition Linux en macOS
Console.SetWindowSize Linux en macOS
Console.Title (alleen verkrijgen) 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 gooien
DbDataReader.GetSchemaTable(werpt NotSupportedException) Alle

System.Diagnostics.Process

Lid Platforms die gooien
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 verkrijgen) macOS
ProcessThread.ProcessorAffinity (alleen instellen) Linux en macOS

System.IO

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

System.IO.Pipes

Lid Platforms die gooien
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 gooien
SoundPlayer(SerializationInfo, StreamingContext) Alle

System.Net

Lid Platforms die gooien
System.Net.AuthenticationManager* Alle
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

* .NET 9 en nieuwere versies.

System.Net.NetworkInformation

Lid Platforms die gooien
Ping.Send Windows (UWP)

System.Net.Sockets

Lid Platforms die gooien
Socket(SocketInformation) Alle
Socket.DuplicateAndClose(Int32) Alle

System.Net.WebSockets

Lid Platforms die gooien
WebSocket.RegisterPrefixes() Alle

System.Reflection

Lid Platforms die gooien
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 gooien
DebugInfoGenerator.CreatePdbGenerator() Alle

System.Runtime.InteropServices

Lid Platforms die gooien
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 gooien
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream, Object)* Alle
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream, Object) Alle
BinaryFormatter.Deserialize(Stream) Alle
XsdDataContractExporter.Schemas Alle

* .NET 9 en nieuwere versies. † .NET 8 alleen voor alle projecttypen behalve Windows Forms en WPF.

System.Security

Lid Platforms die gooien
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 gooien
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 gooien
AesCcm macOS
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
DSA.Create* macOS
DSACryptoServiceProvider* macOS
DSACertificateExtensions.GetDSAPrivateKey(X509Certificate2)* macOS
DSACertificateExtensions.GetDSAPublicKey(X509Certificate2)* macOS
DSACertificateExtensions.CopyWithPrivateKey(X509Certificate2, DSA)* macOS
DSAOpenSsl macOS
ECDiffieHellmanCng.FromXmlString(String, ECKeyXmlFormat) Alle
ECDiffieHellmanCng.ToXmlString(ECKeyXmlFormat) Alle
ECDiffieHellmanCngPublicKey.FromXmlString(String) Alle
ECDiffieHellmanCngPublicKey.ToXmlString() Alle
ECDiffieHellmanOpenSsl macOS
ECDiffieHellmanPublicKey.ToByteArray() Linux en macOS
ECDiffieHellmanPublicKey.ToXmlString() Alle
ECDsaCng.FromXmlString(String, ECKeyXmlFormat) Alle
ECDsaCng.ToXmlString(ECKeyXmlFormat) Alle
ECDsaOpenSsl macOS
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
RSAOpenSsl macOS
System.Security.Cryptography.RSA.DecryptValue(Byte[]) Alle
System.Security.Cryptography.RSA.EncryptValue(Byte[]) Alle
RSA.FromXmlString Alle
RSA.ToXmlString Alle
System.Security.Cryptography.SafeEvpPKeyHandle macOS
SymmetricAlgorithm.Create() Alle
SymmetricAlgorithm.Create(String) Alle

* .NET 11 en nieuwere versies.

System.Security.Cryptography.Pkcs

Lid Platforms die gooien
CmsSigner(CspParameters) Alle
SignerInfo.ComputeCounterSignature() Alle

System.Security.Cryptography.X509Certificates

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

System.Security.Authentication.ExtendedProtection

Lid Platforms die gooien
ExtendedProtectionPolicy(SerializationInfo, StreamingContext) Alle

System.Security.Policy

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

System.ServiceProcess.ServiceController

Lid Platforms die gooien
TimeoutException(SerializationInfo, StreamingContext) Alle

System.Text.RegularExpressions

Lid Platforms die gooien
Regex.CompileToAssembly Alle

System.Threading

Lid Platforms die gooien
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 gooien
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
XsltSettings.EnableScript (indien ingesteld op true) Alle

Zie ook