Aracılığıyla paylaş


.NET'te sürekli istisna fırlatan API'ler (Core)

Aşağıdaki API'ler platformların tümünde veya bir alt kümesinde .NET (Core) üzerinde her zaman bir özel durum oluşturur. Çoğu durumda, atılan özel durum genellikle PlatformNotSupportedException'dir.

Bu makalede, etkilenen API'ler ad alanına göre düzenlenir.

Uyarı

  • Bu makale devam eden bir çalışmadır. .NET 5+ üzerinde istisnaları tetikleyen API'lerin eksiksiz bir listesi değildir.
  • Bu makale, .NET 5+ üzerinde oluşturan ikili serileştirme için açık arabirim uygulamalarını içermez. Daha fazla bilgi için bkz. .NET Core'da ikili serileştirme.

Sistem

Üye Fırlatan platformlar
AppDomain.CreateDomain Tümü
AppDomain.ExecuteAssembly(String, String[], Byte[], AssemblyHashAlgorithm) Tümü
AppDomain.Unload(AppDomain) Tümü
Console.CapsLock Linux ve macOS
Console.NumberLock Linux ve macOS
Delegate.GetObjectData(SerializationInfo, StreamingContext) Tümü
Exception.SerializeObjectState Tümü
MarshalByRefObject.GetLifetimeService() Tümü
MarshalByRefObject.InitializeLifetimeService() Tümü
OperatingSystem.GetObjectData(SerializationInfo, StreamingContext) Tümü
Type.ReflectionOnlyGetType(String, Boolean, Boolean) Tümü

System.CodeDom.Compiler

Üye Fırlatan platformlar
CodeDomProvider.CompileAssemblyFromDom Tümü
CodeDomProvider.CompileAssemblyFromFile Tümü
CodeDomProvider.CompileAssemblyFromSource Tümü

System.Collections.Specialized

Üye Fırlatan platformlar
NameObjectCollectionBase(SerializationInfo, StreamingContext) Tümü
NameObjectCollectionBase.GetObjectData(SerializationInfo, StreamingContext) Tümü
NameObjectCollectionBase.OnDeserialization(Object) Tümü

System.Configuration

Üye Fırlatan platformlar
System.Configuration.RsaProtectedConfigurationProvider (tüm üyeler) Tümü

System.Console

Üye Fırlatan platformlar
Console.Beep() Linux ve macOS
Console.BufferHeight (yalnızca ayarla) Linux ve macOS
Console.BufferWidth (yalnızca ayarla) Linux ve macOS
Console.CursorSize (yalnızca ayarla) Linux ve macOS
Console.CursorVisible (yalnızca al) Linux ve macOS
Console.MoveBufferArea Linux ve macOS
Console.SetWindowPosition Linux ve macOS
Console.SetWindowSize Linux ve macOS
Console.Title (yalnızca al) Linux ve macOS
Console.WindowHeight (yalnızca ayarla) Linux ve macOS
Console.WindowLeft (yalnızca ayarla) Linux ve macOS
Console.WindowTop (yalnızca ayarla) Linux ve macOS
Console.WindowWidth (yalnızca ayarla) Linux ve macOS

System.Data.Common

Üye Fırlatan platformlar
DbDataReader.GetSchemaTable (atar NotSupportedException) Tümü

System.Diagnostics.Process

Üye Fırlatan platformlar
Process.MaxWorkingSet (yalnızca ayarla) Linux işletim sistemi
Process.MinWorkingSet (yalnızca ayarla) Linux işletim sistemi
Process.ProcessorAffinity macOS
Process.MainWindowHandle Linux ve macOS
Process.Start(String, String, String, SecureString, String) Linux ve macOS
Process.Start(String, String, SecureString, String) Linux ve macOS
ProcessStartInfo.UserName Linux ve macOS
ProcessStartInfo.PasswordInClearText Linux ve macOS
ProcessStartInfo.Domain Linux ve macOS
ProcessStartInfo.LoadUserProfile Linux ve macOS
ProcessThread.BasePriority (yalnızca ayarla) Linux ve macOS
ProcessThread.BasePriority (yalnızca al) macOS
ProcessThread.ProcessorAffinity (yalnızca ayarla) Linux ve macOS

System.IO

Üye Fırlatan platformlar
FileSystemInfo(SerializationInfo, StreamingContext) Tümü
FileSystemInfo.GetObjectData(SerializationInfo, StreamingContext) Tümü

System.IO.Pipes

Üye Fırlatan platformlar
NamedPipeClientStream.NumberOfServerInstances Linux ve macOS
NamedPipeServerStream.GetImpersonationUserName() Linux ve macOS
PipeStream.InBufferSize Linux ve macOS
PipeStream.OutBufferSize Linux ve macOS
PipeStream.ReadMode (yalnızca ayarla) Linux ve macOS
PipeStream.WaitForPipeDrain() Linux ve macOS

System.Media

Üye Fırlatan platformlar
SoundPlayer(SerializationInfo, StreamingContext) Tümü

System.Net

Üye Fırlatan platformlar
System.Net.AuthenticationManager* Tümü
AuthenticationManager.Authenticate(String, WebRequest, ICredentials) Tümü
AuthenticationManager.PreAuthenticate(WebRequest, ICredentials) Tümü
FileWebRequest(SerializationInfo, StreamingContext) Tümü
FileWebRequest.GetObjectData(SerializationInfo, StreamingContext) Tümü
FileWebResponse(SerializationInfo, StreamingContext) Tümü
FileWebResponse.GetObjectData(SerializationInfo, StreamingContext) Tümü
HttpWebRequest(SerializationInfo, StreamingContext) Tümü
HttpWebRequest.GetObjectData(SerializationInfo, StreamingContext) Tümü
HttpWebResponse(SerializationInfo, StreamingContext) Tümü
HttpWebResponse.GetObjectData(SerializationInfo, StreamingContext) Tümü
WebProxy(SerializationInfo, StreamingContext) Tümü
WebProxy.GetDefaultProxy() Tümü
WebProxy.GetObjectData Tümü
WebRequest(SerializationInfo, StreamingContext) Tümü
WebRequest.GetObjectData(SerializationInfo, StreamingContext) Tümü
WebResponse(SerializationInfo, StreamingContext) Tümü
WebResponse.GetObjectData(SerializationInfo, StreamingContext) Tümü

* .NET 9 ve sonraki sürümleri.

System.Net.NetworkInformation

Üye Fırlatan platformlar
Ping.Send Windows (UWP)

System.Net.Sockets

Üye Fırlatan platformlar
Socket(SocketInformation) Tümü
Socket.DuplicateAndClose(Int32) Tümü

System.Net.WebSockets

Üye Fırlatan platformlar
WebSocket.RegisterPrefixes() Tümü

System.Reflection

Üye Fırlatan platformlar
Assembly.CodeBase Tümü
Assembly.EscapedCodeBase Tümü
Assembly.LoadFrom(String, Byte[], AssemblyHashAlgorithm) Tümü
Assembly.ReflectionOnlyLoad Tümü
Assembly.ReflectionOnlyLoadFrom(String) Tümü
AssemblyName.GetObjectData(SerializationInfo, StreamingContext) Tümü
AssemblyName.KeyPair Tümü
AssemblyName.OnDeserialization(Object) Tümü
StrongNameKeyPair Tümü
StrongNameKeyPair.PublicKey Tümü

System.Runtime.CompilerServices

Üye Fırlatan platformlar
DebugInfoGenerator.CreatePdbGenerator() Tümü

System.Runtime.InteropServices

Üye Fırlatan platformlar
IDispatchImplAttribute Tümü
Marshal.GetIDispatchForObject(Object) Tümü
RuntimeEnvironment.SystemConfigurationFile Tümü
RuntimeEnvironment.GetRuntimeInterfaceAsIntPtr(Guid, Guid) Tümü
RuntimeEnvironment.GetRuntimeInterfaceAsObject(Guid, Guid) Tümü
WindowsRuntimeMarshal.StringToHString(String) Linux ve macOS
WindowsRuntimeMarshal.PtrToStringHString(IntPtr) Linux ve macOS
WindowsRuntimeMarshal.FreeHString(IntPtr) Linux ve macOS

System.Runtime.Serialization

Üye Fırlatan platformlar
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream, Object)* Tümü
System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize(Stream, Object) Tümü
BinaryFormatter.Deserialize(Stream) Tümü
XsdDataContractExporter.Schemas Tümü

* .NET 9 ve sonraki sürümleri. † Windows Forms ve WPF dışındaki tüm proje türleri için yalnızca .NET 8.

System.Security

Üye Fırlatan platformlar
CodeAccessPermission.Deny() Tümü
CodeAccessPermission.PermitOnly() Tümü
PermissionSet.ConvertPermissionSet(String, Byte[], String) Tümü
PermissionSet.Deny() Tümü
PermissionSet.PermitOnly() Tümü
SecurityContext.Capture() Tümü
SecurityContext.CreateCopy() Tümü
SecurityContext.Dispose() Tümü
SecurityContext.IsFlowSuppressed() Tümü
SecurityContext.IsWindowsIdentityFlowSuppressed() Tümü
SecurityContext.RestoreFlow() Tümü
SecurityContext.Run(SecurityContext, ContextCallback, Object) Tümü
SecurityContext.SuppressFlow() Tümü
SecurityContext.SuppressFlowWindowsIdentity() Tümü

System.Security.Claims

Üye Fırlatan platformlar
ClaimsPrincipal(SerializationInfo, StreamingContext) Tümü
ClaimsPrincipal.GetObjectData(SerializationInfo, StreamingContext) Tümü
ClaimsIdentity(SerializationInfo) Tümü
ClaimsIdentity(SerializationInfo, StreamingContext) Tümü
ClaimsIdentity.GetObjectData(SerializationInfo, StreamingContext) Tümü

System.Security.Cryptography

Üye Fırlatan platformlar
AesCcm macOS
AsymmetricAlgorithm.Create(String) Tümü
System.Security.Cryptography.CngAlgorithm Linux ve macOS
System.Security.Cryptography.CngAlgorithmGroup Linux ve macOS
System.Security.Cryptography.CngKey Linux ve macOS
System.Security.Cryptography.CngKeyBlobFormat Linux ve macOS
System.Security.Cryptography.CngKeyCreationParameters Linux ve macOS
System.Security.Cryptography.CngProvider Linux ve macOS
System.Security.Cryptography.CngUIPolicy Linux ve macOS
CryptoConfig.EncodeOID(String) Tümü
CspKeyContainerInfo Linux ve macOS
CspKeyContainerInfo.Accessible Linux ve macOS
CspKeyContainerInfo.Exportable Linux ve macOS
CspKeyContainerInfo.HardwareDevice Linux ve macOS
CspKeyContainerInfo.KeyContainerName Linux ve macOS
CspKeyContainerInfo.KeyNumber Linux ve macOS
CspKeyContainerInfo.MachineKeyStore Linux ve macOS
CspKeyContainerInfo.Protected Linux ve macOS
CspKeyContainerInfo.ProviderName Linux ve macOS
CspKeyContainerInfo.ProviderType Linux ve macOS
CspKeyContainerInfo.RandomlyGenerated Linux ve macOS
CspKeyContainerInfo.Removable Linux ve macOS
CspKeyContainerInfo.UniqueKeyContainerName Linux ve 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) Tümü
ECDiffieHellmanCng.ToXmlString(ECKeyXmlFormat) Tümü
ECDiffieHellmanCngPublicKey.FromXmlString(String) Tümü
ECDiffieHellmanCngPublicKey.ToXmlString() Tümü
ECDiffieHellmanOpenSsl macOS
ECDiffieHellmanPublicKey.ToByteArray() Linux ve macOS
ECDiffieHellmanPublicKey.ToXmlString() Tümü
ECDsaCng.FromXmlString(String, ECKeyXmlFormat) Tümü
ECDsaCng.ToXmlString(ECKeyXmlFormat) Tümü
ECDsaOpenSsl macOS
HashAlgorithm.Create() Tümü
HMAC.Create() Tümü
HMAC.Create(String) Tümü
HMAC.HashCore Tümü
HMAC.HashFinal Tümü
HMAC.Initialize Tümü
KeyedHashAlgorithm.Create() Tümü
KeyedHashAlgorithm.Create(String) Tümü
ProtectedData.Protect Linux ve macOS
ProtectedData.Unprotect Linux ve macOS
System.Security.Cryptography.RSACryptoServiceProvider.DecryptValue(Byte[]) Tümü
System.Security.Cryptography.RSACryptoServiceProvider.EncryptValue(Byte[]) Tümü
RSAOpenSsl macOS
System.Security.Cryptography.RSA.DecryptValue(Byte[]) Tümü
System.Security.Cryptography.RSA.EncryptValue(Byte[]) Tümü
RSA.FromXmlString Tümü
RSA.ToXmlString Tümü
System.Security.Cryptography.SafeEvpPKeyHandle macOS
SymmetricAlgorithm.Create() Tümü
SymmetricAlgorithm.Create(String) Tümü

* .NET 11 ve sonraki sürümleri.

System.Security.Cryptography.Pkcs

Üye Fırlatan platformlar
CmsSigner(CspParameters) Tümü
SignerInfo.ComputeCounterSignature() Tümü

System.Security.Cryptography.X509Certificates

Üye Fırlatan platformlar
X509Certificate(SerializationInfo, StreamingContext) Tümü
X509Certificate.Import Tümü
X509Certificate2(SerializationInfo, StreamingContext) Tümü
X509Certificate2.PrivateKey (yalnızca ayarla) Tümü

System.Security.Authentication.ExtendedProtection

Üye Fırlatan platformlar
ExtendedProtectionPolicy(SerializationInfo, StreamingContext) Tümü

Sistem.Güvenlik.Politikası

Üye Fırlatan platformlar
Hash.GetObjectData(SerializationInfo, StreamingContext) Tümü

System.ServiceProcess.ServiceController

Üye Fırlatan platformlar
TimeoutException(SerializationInfo, StreamingContext) Tümü

System.Text.RegularExpressions

Üye Fırlatan platformlar
Regex.CompileToAssembly Tümü

System.Threading

Üye Fırlatan platformlar
CompressedStack.GetObjectData(SerializationInfo, StreamingContext) Tümü
ExecutionContext.GetObjectData(SerializationInfo, StreamingContext) Tümü
Thread.Abort Tümü
Thread.ResetAbort() Tümü
Thread.Resume() Tümü
Thread.Suspend() Tümü

System.Xml

Üye Fırlatan platformlar
XmlDictionaryReader.CreateMtomReader(Byte[], Int32, Int32, Encoding[], String, XmlDictionaryReaderQuotas, Int32, OnXmlDictionaryReaderClose) Tümü
XmlDictionaryReader.CreateMtomReader(Stream, Encoding[], String, XmlDictionaryReaderQuotas, Int32, OnXmlDictionaryReaderClose) Tümü
XmlDictionaryWriter.CreateMtomWriter(Stream, Encoding, Int32, String, String, String, Boolean, Boolean) Tümü
XsltSettings.EnableScript (olarak ayarlandığında true) Tümü

Ayrıca bakınız