Interfejsy API, które zawsze zgłaszają wyjątki na platformach .NET Core i .NET 5+

Następujące interfejsy API zawsze zgłaszają wyjątek na platformie .NET (Core) we wszystkich lub podzestawie platform. W większości przypadków zgłaszany wyjątek to PlatformNotSupportedException.

Ten artykuł organizuje objęte interfejsy API według przestrzeni nazw.

Uwaga

  • Ten artykuł jest w toku. Nie jest to pełna lista interfejsów API, które zgłaszają wyjątki na platformie .NET 5+.
  • Ten artykuł nie zawiera jawnych implementacji interfejsu dla serializacji binarnej, które zgłaszają na platformie .NET 5+. Aby uzyskać więcej informacji, zobacz Serializacja binarna na platformie .NET Core.

System

Element członkowski Platformy, które zgłaszają
AppDomain.CreateDomain wszystkie
AppDomain.ExecuteAssembly(String, String[], Byte[], AssemblyHashAlgorithm) wszystkie
AppDomain.Unload(AppDomain) wszystkie
Console.CapsLock Linux i macOS
Console.NumberLock Linux i macOS
Delegate.GetObjectData(SerializationInfo, StreamingContext) wszystkie
Exception.SerializeObjectState wszystkie
MarshalByRefObject.GetLifetimeService() wszystkie
MarshalByRefObject.InitializeLifetimeService() wszystkie
OperatingSystem.GetObjectData(SerializationInfo, StreamingContext) wszystkie
Type.ReflectionOnlyGetType(String, Boolean, Boolean) wszystkie

System.CodeDom.Compiler

Element członkowski Platformy, które zgłaszają
CodeDomProvider.CompileAssemblyFromDom wszystkie
CodeDomProvider.CompileAssemblyFromFile wszystkie
CodeDomProvider.CompileAssemblyFromSource wszystkie

System.collections.specialized

Element członkowski Platformy, które zgłaszają
NameObjectCollectionBase(SerializationInfo, StreamingContext) wszystkie
NameObjectCollectionBase.GetObjectData(SerializationInfo, StreamingContext) wszystkie
NameObjectCollectionBase.OnDeserialization(Object) wszystkie

System.configuration

Element członkowski Platformy, które zgłaszają
System.Configuration.RsaProtectedConfigurationProvider (wszyscy członkowie) wszystkie

System.Console

Element członkowski Platformy, które zgłaszają
Console.Beep() Linux i macOS
Console.BufferHeight (ustaw tylko) Linux i macOS
Console.BufferWidth (ustaw tylko) Linux i macOS
Console.CursorSize (ustaw tylko) Linux i macOS
Console.CursorVisible (pobierz tylko) Linux i macOS
Console.MoveBufferArea Linux i macOS
Console.SetWindowPosition Linux i macOS
Console.SetWindowSize Linux i macOS
Console.Title (pobierz tylko) Linux i macOS
Console.WindowHeight (ustaw tylko) Linux i macOS
Console.WindowLeft (ustaw tylko) Linux i macOS
Console.WindowTop (ustaw tylko) Linux i macOS
Console.WindowWidth (ustaw tylko) Linux i macOS

System.Data.Common

Element członkowski Platformy, które zgłaszają
DbDataReader.GetSchemaTable (throws NotSupportedException) wszystkie

System.Diagnostics.Process

Element członkowski Platformy, które zgłaszają
Process.MaxWorkingSet (ustaw tylko) Linux
Process.MinWorkingSet (ustaw tylko) Linux
Process.ProcessorAffinity macOS
Process.MainWindowHandle Linux i macOS
Process.Start(String, String, String, SecureString, String) Linux i macOS
Process.Start(String, String, SecureString, String) Linux i macOS
ProcessStartInfo.UserName Linux i macOS
ProcessStartInfo.PasswordInClearText Linux i macOS
ProcessStartInfo.Domain Linux i macOS
ProcessStartInfo.LoadUserProfile Linux i macOS
ProcessThread.BasePriority (ustaw tylko) Linux i macOS
ProcessThread.BasePriority (pobierz tylko) macOS
ProcessThread.ProcessorAffinity (ustaw tylko) Linux i macOS

System.IO

Element członkowski Platformy, które zgłaszają
FileSystemInfo(SerializationInfo, StreamingContext) wszystkie
FileSystemInfo.GetObjectData(SerializationInfo, StreamingContext) wszystkie

System.IO.Potoki

Element członkowski Platformy, które zgłaszają
NamedPipeClientStream.NumberOfServerInstances Linux i macOS
NamedPipeServerStream.GetImpersonationUserName() Linux i macOS
PipeStream.InBufferSize Linux i macOS
PipeStream.OutBufferSize Linux i macOS
PipeStream.ReadMode (ustaw tylko) Linux i macOS
PipeStream.WaitForPipeDrain() Linux i macOS

System.Media

Element członkowski Platformy, które zgłaszają
SoundPlayer(SerializationInfo, StreamingContext) wszystkie

System.Net

Element członkowski Platformy, które zgłaszają
AuthenticationManager.Authenticate(String, WebRequest, ICredentials) wszystkie
AuthenticationManager.PreAuthenticate(WebRequest, ICredentials) wszystkie
FileWebRequest(SerializationInfo, StreamingContext) wszystkie
FileWebRequest.GetObjectData(SerializationInfo, StreamingContext) wszystkie
FileWebResponse(SerializationInfo, StreamingContext) wszystkie
FileWebResponse.GetObjectData(SerializationInfo, StreamingContext) wszystkie
HttpWebRequest(SerializationInfo, StreamingContext) wszystkie
HttpWebRequest.GetObjectData(SerializationInfo, StreamingContext) wszystkie
HttpWebResponse(SerializationInfo, StreamingContext) wszystkie
HttpWebResponse.GetObjectData(SerializationInfo, StreamingContext) wszystkie
WebProxy(SerializationInfo, StreamingContext) wszystkie
WebProxy.GetDefaultProxy() wszystkie
WebProxy.GetObjectData wszystkie
WebRequest(SerializationInfo, StreamingContext) wszystkie
WebRequest.GetObjectData(SerializationInfo, StreamingContext) wszystkie
WebResponse(SerializationInfo, StreamingContext) wszystkie
WebResponse.GetObjectData(SerializationInfo, StreamingContext) wszystkie

System.Net.NetworkInformation

Element członkowski Platformy, które zgłaszają
Ping.Send Windows (platforma UWP)

System.net.sockets

Element członkowski Platformy, które zgłaszają
Socket(SocketInformation) wszystkie
Socket.DuplicateAndClose(Int32) wszystkie

System.Net.WebSockets

Element członkowski Platformy, które zgłaszają
WebSocket.RegisterPrefixes() wszystkie

System. Emocje ion

Element członkowski Platformy, które zgłaszają
Assembly.CodeBase wszystkie
Assembly.EscapedCodeBase wszystkie
Assembly.ReflectionOnlyLoad wszystkie
Assembly.ReflectionOnlyLoadFrom(String) wszystkie
AssemblyName.GetObjectData(SerializationInfo, StreamingContext) wszystkie
AssemblyName.KeyPair wszystkie
AssemblyName.OnDeserialization(Object) wszystkie
StrongNameKeyPair wszystkie
StrongNameKeyPair.PublicKey wszystkie

System.runtime.compilerservices

Element członkowski Platformy, które zgłaszają
DebugInfoGenerator.CreatePdbGenerator() wszystkie

System.runtime.interopservices

Element członkowski Platformy, które zgłaszają
IDispatchImplAttribute wszystkie
Marshal.GetIDispatchForObject(Object) wszystkie
RuntimeEnvironment.SystemConfigurationFile wszystkie
RuntimeEnvironment.GetRuntimeInterfaceAsIntPtr(Guid, Guid) wszystkie
RuntimeEnvironment.GetRuntimeInterfaceAsObject(Guid, Guid) wszystkie
WindowsRuntimeMarshal.StringToHString(String) Linux i macOS
WindowsRuntimeMarshal.PtrToStringHString(IntPtr) Linux i macOS
WindowsRuntimeMarshal.FreeHString(IntPtr) Linux i macOS

System.Runtime.Serialization

Element członkowski Platformy, które zgłaszają
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream, Object)* wszystkie
BinaryFormatter.Deserialize(Stream)* wszystkie
XsdDataContractExporter.Schemas wszystkie

* .NET 8 i nowsze wersje tylko dla wszystkich typów projektów z wyjątkiem Windows Forms i WPF.

System.Security

Element członkowski Platformy, które zgłaszają
CodeAccessPermission.Deny() wszystkie
CodeAccessPermission.PermitOnly() wszystkie
PermissionSet.ConvertPermissionSet(String, Byte[], String) wszystkie
PermissionSet.Deny() wszystkie
PermissionSet.PermitOnly() wszystkie
SecurityContext.Capture() wszystkie
SecurityContext.CreateCopy() wszystkie
SecurityContext.Dispose() wszystkie
SecurityContext.IsFlowSuppressed() wszystkie
SecurityContext.IsWindowsIdentityFlowSuppressed() wszystkie
SecurityContext.RestoreFlow() wszystkie
SecurityContext.Run(SecurityContext, ContextCallback, Object) wszystkie
SecurityContext.SuppressFlow() wszystkie
SecurityContext.SuppressFlowWindowsIdentity() wszystkie

System.security.claims

Element członkowski Platformy, które zgłaszają
ClaimsPrincipal(SerializationInfo, StreamingContext) wszystkie
ClaimsPrincipal.GetObjectData(SerializationInfo, StreamingContext) wszystkie
ClaimsIdentity(SerializationInfo) wszystkie
ClaimsIdentity(SerializationInfo, StreamingContext) wszystkie
ClaimsIdentity.GetObjectData(SerializationInfo, StreamingContext) wszystkie

System.security.cryptography

Element członkowski Platformy, które zgłaszają
AsymmetricAlgorithm.Create(String) wszystkie
System.Security.Cryptography.CngAlgorithm Linux i macOS
System.Security.Cryptography.CngAlgorithmGroup Linux i macOS
System.Security.Cryptography.CngKey Linux i macOS
System.Security.Cryptography.CngKeyBlobFormat Linux i macOS
System.Security.Cryptography.CngKeyCreationParameters Linux i macOS
System.Security.Cryptography.CngProvider Linux i macOS
System.Security.Cryptography.CngUIPolicy Linux i macOS
CryptoConfig.EncodeOID(String) wszystkie
CspKeyContainerInfo Linux i macOS
CspKeyContainerInfo.Accessible Linux i macOS
CspKeyContainerInfo.Exportable Linux i macOS
CspKeyContainerInfo.HardwareDevice Linux i macOS
CspKeyContainerInfo.KeyContainerName Linux i macOS
CspKeyContainerInfo.KeyNumber Linux i macOS
CspKeyContainerInfo.MachineKeyStore Linux i macOS
CspKeyContainerInfo.Protected Linux i macOS
CspKeyContainerInfo.ProviderName Linux i macOS
CspKeyContainerInfo.ProviderType Linux i macOS
CspKeyContainerInfo.RandomlyGenerated Linux i macOS
CspKeyContainerInfo.Removable Linux i macOS
CspKeyContainerInfo.UniqueKeyContainerName Linux i macOS
ECDiffieHellmanCng.FromXmlString(String, ECKeyXmlFormat) wszystkie
ECDiffieHellmanCng.ToXmlString(ECKeyXmlFormat) wszystkie
ECDiffieHellmanCngPublicKey.FromXmlString(String) wszystkie
ECDiffieHellmanCngPublicKey.ToXmlString() wszystkie
ECDiffieHellmanPublicKey.ToByteArray() Linux i macOS
ECDiffieHellmanPublicKey.ToXmlString() wszystkie
ECDsaCng.FromXmlString(String, ECKeyXmlFormat) wszystkie
ECDsaCng.ToXmlString(ECKeyXmlFormat) wszystkie
HashAlgorithm.Create() wszystkie
HMAC.Create() wszystkie
HMAC.Create(String) wszystkie
HMAC.HashCore wszystkie
HMAC.HashFinal wszystkie
HMAC.Initialize wszystkie
KeyedHashAlgorithm.Create() wszystkie
KeyedHashAlgorithm.Create(String) wszystkie
ProtectedData.Protect Linux i macOS
ProtectedData.Unprotect Linux i macOS
System.Security.Cryptography.RSACryptoServiceProvider.DecryptValue(Byte[]) wszystkie
System.Security.Cryptography.RSACryptoServiceProvider.EncryptValue(Byte[]) wszystkie
System.Security.Cryptography.RSA.DecryptValue(Byte[]) wszystkie
System.Security.Cryptography.RSA.EncryptValue(Byte[]) wszystkie
RSA.FromXmlString wszystkie
RSA.ToXmlString wszystkie
SymmetricAlgorithm.Create() wszystkie
SymmetricAlgorithm.Create(String) wszystkie

System.Security.Cryptography.Pkcs

Element członkowski Platformy, które zgłaszają
CmsSigner(CspParameters) wszystkie
SignerInfo.ComputeCounterSignature() wszystkie

System.Security.Cryptography.X509Certificates

Element członkowski Platformy, które zgłaszają
X509Certificate(SerializationInfo, StreamingContext) wszystkie
X509Certificate.Import wszystkie
X509Certificate2(SerializationInfo, StreamingContext) wszystkie
X509Certificate2.PrivateKey (ustaw tylko) wszystkie

System.Security.Authentication.ExtendedProtection

Element członkowski Platformy, które zgłaszają
ExtendedProtectionPolicy(SerializationInfo, StreamingContext) wszystkie

System.Security.Policy

Element członkowski Platformy, które zgłaszają
Hash.GetObjectData(SerializationInfo, StreamingContext) wszystkie

System.ServiceProcess.ServiceController

Element członkowski Platformy, które zgłaszają
TimeoutException(SerializationInfo, StreamingContext) wszystkie

System.Text.RegularExpressions

Element członkowski Platformy, które zgłaszają
Regex.CompileToAssembly wszystkie

System.threading

Element członkowski Platformy, które zgłaszają
CompressedStack.GetObjectData(SerializationInfo, StreamingContext) wszystkie
ExecutionContext.GetObjectData(SerializationInfo, StreamingContext) wszystkie
Thread.Abort wszystkie
Thread.ResetAbort() wszystkie
Thread.Resume() wszystkie
Thread.Suspend() wszystkie

System.Xml

Element członkowski Platformy, które zgłaszają
XmlDictionaryReader.CreateMtomReader(Byte[], Int32, Int32, Encoding[], String, XmlDictionaryReaderQuotas, Int32, OnXmlDictionaryReaderClose) wszystkie
XmlDictionaryReader.CreateMtomReader(Stream, Encoding[], String, XmlDictionaryReaderQuotas, Int32, OnXmlDictionaryReaderClose) wszystkie
XmlDictionaryWriter.CreateMtomWriter(Stream, Encoding, Int32, String, String, String, Boolean, Boolean) wszystkie

Zobacz też