Megosztás a következőn keresztül:


Azok az API-k, amelyek mindig kivételeket adnak a .NET Core-on és a .NET 5+-on

A következő API-k mindig kivételt képeznek a .NET-en (Core) a platformok teljes vagy egy részhalmazán. A legtöbb esetben a kidobott kivétel az PlatformNotSupportedException.

Ez a cikk névtér alapján rendszerezi az érintett API-kat.

Feljegyzés

  • Ez a cikk folyamatban lévő munka. Ez nem az api-k teljes listája, amelyek kivételeket vetnek ki a .NET 5+ rendszeren.
  • Ez a cikk nem tartalmazza a .NET 5+-on megjelenő bináris szerializálás explicit felületi implementációit. További információ: Bináris szerializálás a .NET Core-ban.

Rendszer

Tag A dobóplatformok
AppDomain.CreateDomain Mind
AppDomain.ExecuteAssembly(String, String[], Byte[], AssemblyHashAlgorithm) Mind
AppDomain.Unload(AppDomain) Mind
Console.CapsLock Linux és macOS
Console.NumberLock Linux és macOS
Delegate.GetObjectData(SerializationInfo, StreamingContext) Mind
Exception.SerializeObjectState Mind
MarshalByRefObject.GetLifetimeService() Mind
MarshalByRefObject.InitializeLifetimeService() Mind
OperatingSystem.GetObjectData(SerializationInfo, StreamingContext) Mind
Type.ReflectionOnlyGetType(String, Boolean, Boolean) Mind

System.CodeDom.Compiler

Tag A dobóplatformok
CodeDomProvider.CompileAssemblyFromDom Mind
CodeDomProvider.CompileAssemblyFromFile Mind
CodeDomProvider.CompileAssemblyFromSource Mind

System.Collections.Special

Tag A dobóplatformok
NameObjectCollectionBase(SerializationInfo, StreamingContext) Mind
NameObjectCollectionBase.GetObjectData(SerializationInfo, StreamingContext) Mind
NameObjectCollectionBase.OnDeserialization(Object) Mind

System.Configuration

Tag A dobóplatformok
System.Configuration.RsaProtectedConfigurationProvider (minden tag) Mind

System.Console

Tag A dobóplatformok
Console.Beep() Linux és macOS
Console.BufferHeight (csak beállítva) Linux és macOS
Console.BufferWidth (csak beállítva) Linux és macOS
Console.CursorSize (csak beállítva) Linux és macOS
Console.CursorVisible (csak lekérés) Linux és macOS
Console.MoveBufferArea Linux és macOS
Console.SetWindowPosition Linux és macOS
Console.SetWindowSize Linux és macOS
Console.Title (csak lekérés) Linux és macOS
Console.WindowHeight (csak beállítva) Linux és macOS
Console.WindowLeft (csak beállítva) Linux és macOS
Console.WindowTop (csak beállítva) Linux és macOS
Console.WindowWidth (csak beállítva) Linux és macOS

System.Data.Common

Tag A dobóplatformok
DbDataReader.GetSchemaTable(dob )NotSupportedException Mind

System.Diagnostics.Process

Tag A dobóplatformok
Process.MaxWorkingSet (csak beállítva) Linux
Process.MinWorkingSet (csak beállítva) Linux
Process.ProcessorAffinity macOS
Process.MainWindowHandle Linux és macOS
Process.Start(String, String, String, SecureString, String) Linux és macOS
Process.Start(String, String, SecureString, String) Linux és macOS
ProcessStartInfo.UserName Linux és macOS
ProcessStartInfo.PasswordInClearText Linux és macOS
ProcessStartInfo.Domain Linux és macOS
ProcessStartInfo.LoadUserProfile Linux és macOS
ProcessThread.BasePriority (csak beállítva) Linux és macOS
ProcessThread.BasePriority (csak lekérés) macOS
ProcessThread.ProcessorAffinity (csak beállítva) Linux és macOS

System.IO

Tag A dobóplatformok
FileSystemInfo(SerializationInfo, StreamingContext) Mind
FileSystemInfo.GetObjectData(SerializationInfo, StreamingContext) Mind

System.IO.Pipes

Tag A dobóplatformok
NamedPipeClientStream.NumberOfServerInstances Linux és macOS
NamedPipeServerStream.GetImpersonationUserName() Linux és macOS
PipeStream.InBufferSize Linux és macOS
PipeStream.OutBufferSize Linux és macOS
PipeStream.ReadMode (csak beállítva) Linux és macOS
PipeStream.WaitForPipeDrain() Linux és macOS

System.Media

Tag A dobóplatformok
SoundPlayer(SerializationInfo, StreamingContext) Mind

System.Net

Tag A dobóplatformok
AuthenticationManager.Authenticate(String, WebRequest, ICredentials) Mind
AuthenticationManager.PreAuthenticate(WebRequest, ICredentials) Mind
FileWebRequest(SerializationInfo, StreamingContext) Mind
FileWebRequest.GetObjectData(SerializationInfo, StreamingContext) Mind
FileWebResponse(SerializationInfo, StreamingContext) Mind
FileWebResponse.GetObjectData(SerializationInfo, StreamingContext) Mind
HttpWebRequest(SerializationInfo, StreamingContext) Mind
HttpWebRequest.GetObjectData(SerializationInfo, StreamingContext) Mind
HttpWebResponse(SerializationInfo, StreamingContext) Mind
HttpWebResponse.GetObjectData(SerializationInfo, StreamingContext) Mind
WebProxy(SerializationInfo, StreamingContext) Mind
WebProxy.GetDefaultProxy() Mind
WebProxy.GetObjectData Mind
WebRequest(SerializationInfo, StreamingContext) Mind
WebRequest.GetObjectData(SerializationInfo, StreamingContext) Mind
WebResponse(SerializationInfo, StreamingContext) Mind
WebResponse.GetObjectData(SerializationInfo, StreamingContext) Mind

System.Net.NetworkInformation

Tag A dobóplatformok
Ping.Send Windows (UWP)

System.Net.Sockets

Tag A dobóplatformok
Socket(SocketInformation) Mind
Socket.DuplicateAndClose(Int32) Mind

System.Net.WebSockets

Tag A dobóplatformok
WebSocket.RegisterPrefixes() Mind

Rendszer. Önkifejezés ion

Tag A dobóplatformok
Assembly.CodeBase Mind
Assembly.EscapedCodeBase Mind
Assembly.LoadFrom(String, Byte[], AssemblyHashAlgorithm) Mind
Assembly.ReflectionOnlyLoad Mind
Assembly.ReflectionOnlyLoadFrom(String) Mind
AssemblyName.GetObjectData(SerializationInfo, StreamingContext) Mind
AssemblyName.KeyPair Mind
AssemblyName.OnDeserialization(Object) Mind
StrongNameKeyPair Mind
StrongNameKeyPair.PublicKey Mind

System.Runtime.CompilerServices

Tag A dobóplatformok
DebugInfoGenerator.CreatePdbGenerator() Mind

System.Runtime.InteropServices

Tag A dobóplatformok
IDispatchImplAttribute Mind
Marshal.GetIDispatchForObject(Object) Mind
RuntimeEnvironment.SystemConfigurationFile Mind
RuntimeEnvironment.GetRuntimeInterfaceAsIntPtr(Guid, Guid) Mind
RuntimeEnvironment.GetRuntimeInterfaceAsObject(Guid, Guid) Mind
WindowsRuntimeMarshal.StringToHString(String) Linux és macOS
WindowsRuntimeMarshal.PtrToStringHString(IntPtr) Linux és macOS
WindowsRuntimeMarshal.FreeHString(IntPtr) Linux és macOS

System.Runtime.Serialization

Tag A dobóplatformok
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream, Object)* Mind
BinaryFormatter.Deserialize(Stream)* Mind
XsdDataContractExporter.Schemas Mind

* .NET 8 és újabb verziók csak a Windows Forms és a WPF kivételével minden projekttípushoz.

System.Security

Tag A dobóplatformok
CodeAccessPermission.Deny() Mind
CodeAccessPermission.PermitOnly() Mind
PermissionSet.ConvertPermissionSet(String, Byte[], String) Mind
PermissionSet.Deny() Mind
PermissionSet.PermitOnly() Mind
SecurityContext.Capture() Mind
SecurityContext.CreateCopy() Mind
SecurityContext.Dispose() Mind
SecurityContext.IsFlowSuppressed() Mind
SecurityContext.IsWindowsIdentityFlowSuppressed() Mind
SecurityContext.RestoreFlow() Mind
SecurityContext.Run(SecurityContext, ContextCallback, Object) Mind
SecurityContext.SuppressFlow() Mind
SecurityContext.SuppressFlowWindowsIdentity() Mind

System.Security.Claims

Tag A dobóplatformok
ClaimsPrincipal(SerializationInfo, StreamingContext) Mind
ClaimsPrincipal.GetObjectData(SerializationInfo, StreamingContext) Mind
ClaimsIdentity(SerializationInfo) Mind
ClaimsIdentity(SerializationInfo, StreamingContext) Mind
ClaimsIdentity.GetObjectData(SerializationInfo, StreamingContext) Mind

System.Security.Cryptography

Tag A dobóplatformok
AsymmetricAlgorithm.Create(String) Mind
System.Security.Cryptography.CngAlgorithm Linux és macOS
System.Security.Cryptography.CngAlgorithmGroup Linux és macOS
System.Security.Cryptography.CngKey Linux és macOS
System.Security.Cryptography.CngKeyBlobFormat Linux és macOS
System.Security.Cryptography.CngKeyCreationParameters Linux és macOS
System.Security.Cryptography.CngProvider Linux és macOS
System.Security.Cryptography.CngUIPolicy Linux és macOS
CryptoConfig.EncodeOID(String) Mind
CspKeyContainerInfo Linux és macOS
CspKeyContainerInfo.Accessible Linux és macOS
CspKeyContainerInfo.Exportable Linux és macOS
CspKeyContainerInfo.HardwareDevice Linux és macOS
CspKeyContainerInfo.KeyContainerName Linux és macOS
CspKeyContainerInfo.KeyNumber Linux és macOS
CspKeyContainerInfo.MachineKeyStore Linux és macOS
CspKeyContainerInfo.Protected Linux és macOS
CspKeyContainerInfo.ProviderName Linux és macOS
CspKeyContainerInfo.ProviderType Linux és macOS
CspKeyContainerInfo.RandomlyGenerated Linux és macOS
CspKeyContainerInfo.Removable Linux és macOS
CspKeyContainerInfo.UniqueKeyContainerName Linux és macOS
ECDiffieHellmanCng.FromXmlString(String, ECKeyXmlFormat) Mind
ECDiffieHellmanCng.ToXmlString(ECKeyXmlFormat) Mind
ECDiffieHellmanCngPublicKey.FromXmlString(String) Mind
ECDiffieHellmanCngPublicKey.ToXmlString() Mind
ECDiffieHellmanPublicKey.ToByteArray() Linux és macOS
ECDiffieHellmanPublicKey.ToXmlString() Mind
ECDsaCng.FromXmlString(String, ECKeyXmlFormat) Mind
ECDsaCng.ToXmlString(ECKeyXmlFormat) Mind
HashAlgorithm.Create() Mind
HMAC.Create() Mind
HMAC.Create(String) Mind
HMAC.HashCore Mind
HMAC.HashFinal Mind
HMAC.Initialize Mind
KeyedHashAlgorithm.Create() Mind
KeyedHashAlgorithm.Create(String) Mind
ProtectedData.Protect Linux és macOS
ProtectedData.Unprotect Linux és macOS
System.Security.Cryptography.RSACryptoServiceProvider.DecryptValue(Byte[]) Mind
System.Security.Cryptography.RSACryptoServiceProvider.EncryptValue(Byte[]) Mind
System.Security.Cryptography.RSA.DecryptValue(Byte[]) Mind
System.Security.Cryptography.RSA.EncryptValue(Byte[]) Mind
RSA.FromXmlString Mind
RSA.ToXmlString Mind
SymmetricAlgorithm.Create() Mind
SymmetricAlgorithm.Create(String) Mind

System.Security.Cryptography.Pkcs

Tag A dobóplatformok
CmsSigner(CspParameters) Mind
SignerInfo.ComputeCounterSignature() Mind

System.Security.Cryptography.X509Certificates

Tag A dobóplatformok
X509Certificate(SerializationInfo, StreamingContext) Mind
X509Certificate.Import Mind
X509Certificate2(SerializationInfo, StreamingContext) Mind
X509Certificate2.PrivateKey (csak beállítva) Mind

System.Security.Authentication.ExtendedProtection

Tag A dobóplatformok
ExtendedProtectionPolicy(SerializationInfo, StreamingContext) Mind

System.Security.Policy

Tag A dobóplatformok
Hash.GetObjectData(SerializationInfo, StreamingContext) Mind

System.ServiceProcess.ServiceController

Tag A dobóplatformok
TimeoutException(SerializationInfo, StreamingContext) Mind

System.Text.RegularExpressions

Tag A dobóplatformok
Regex.CompileToAssembly Mind

System.Threading

Tag A dobóplatformok
CompressedStack.GetObjectData(SerializationInfo, StreamingContext) Mind
ExecutionContext.GetObjectData(SerializationInfo, StreamingContext) Mind
Thread.Abort Mind
Thread.ResetAbort() Mind
Thread.Resume() Mind
Thread.Suspend() Mind

System.Xml

Tag A dobóplatformok
XmlDictionaryReader.CreateMtomReader(Byte[], Int32, Int32, Encoding[], String, XmlDictionaryReaderQuotas, Int32, OnXmlDictionaryReaderClose) Mind
XmlDictionaryReader.CreateMtomReader(Stream, Encoding[], String, XmlDictionaryReaderQuotas, Int32, OnXmlDictionaryReaderClose) Mind
XmlDictionaryWriter.CreateMtomWriter(Stream, Encoding, Int32, String, String, String, Boolean, Boolean) Mind

Lásd még