Anmerkung
Der Zugriff auf diese Seite erfordert eine Genehmigung. Du kannst versuchen, dich anzumelden oder die Verzeichnisse zu wechseln.
Der Zugriff auf diese Seite erfordert eine Genehmigung. Du kannst versuchen , die Verzeichnisse zu wechseln.
Die folgenden APIs lösen immer eine Ausnahme auf .NET (Core) auf allen oder einer Teilmenge von Plattformen aus. In den meisten Fällen wird die Ausnahme PlatformNotSupportedException ausgelöst.
In diesem Artikel werden die betroffenen APIs nach Namespace organisiert.
Hinweis
- Dieser Artikel ist eine laufende Arbeit. Es handelt sich nicht um eine vollständige Liste von APIs, die Ausnahmen für .NET 5+ auslösen.
- In diesem Artikel sind die expliziten Schnittstellenimplementierungen für die binäre Serialisierung, die in .NET 5 und höher eine Ausnahme auslösen, nicht enthalten. Weitere Informationen finden Sie unter Binäre Serialisierung in .NET Core.
System
| Mitglied | Plattformen, auf denen eine Ausnahme ausgelöst wird |
|---|---|
| AppDomain.CreateDomain | Alle |
| AppDomain.ExecuteAssembly(String, String[], Byte[], AssemblyHashAlgorithm) | Alle |
| AppDomain.Unload(AppDomain) | Alle |
| Console.CapsLock | Linux und macOS |
| Console.NumberLock | Linux und 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
| Mitglied | Plattformen, auf denen eine Ausnahme ausgelöst wird |
|---|---|
| CodeDomProvider.CompileAssemblyFromDom | Alle |
| CodeDomProvider.CompileAssemblyFromFile | Alle |
| CodeDomProvider.CompileAssemblyFromSource | Alle |
System.Collections.Specialized
| Mitglied | Plattformen, auf denen eine Ausnahme ausgelöst wird |
|---|---|
| NameObjectCollectionBase(SerializationInfo, StreamingContext) | Alle |
| NameObjectCollectionBase.GetObjectData(SerializationInfo, StreamingContext) | Alle |
| NameObjectCollectionBase.OnDeserialization(Object) | Alle |
System.Configuration
| Mitglied | Plattformen, auf denen eine Ausnahme ausgelöst wird |
|---|---|
| System.Configuration.RsaProtectedConfigurationProvider (alle Mitglieder) | Alle |
System.Console
| Mitglied | Plattformen, auf denen eine Ausnahme ausgelöst wird |
|---|---|
| Console.Beep() | Linux und macOS |
| Console.BufferHeight (nur „set“) | Linux und macOS |
| Console.BufferWidth (nur „set“) | Linux und macOS |
| Console.CursorSize (nur „set“) | Linux und macOS |
| Console.CursorVisible (nur „get“) | Linux und macOS |
| Console.MoveBufferArea | Linux und macOS |
| Console.SetWindowPosition | Linux und macOS |
| Console.SetWindowSize | Linux und macOS |
| Console.Title (nur „get“) | Linux und macOS |
| Console.WindowHeight (nur „set“) | Linux und macOS |
| Console.WindowLeft (nur „set“) | Linux und macOS |
| Console.WindowTop (nur „set“) | Linux und macOS |
| Console.WindowWidth (nur „set“) | Linux und macOS |
System.Data.Common
| Mitglied | Plattformen, auf denen eine Ausnahme ausgelöst wird |
|---|---|
| DbDataReader.GetSchemaTable (löst NotSupportedException aus) | Alle |
System.Diagnostics.Process
| Mitglied | Plattformen, auf denen eine Ausnahme ausgelöst wird |
|---|---|
| Process.MaxWorkingSet (nur „set“) | Linux (Englisch) |
| Process.MinWorkingSet (nur „set“) | Linux (Englisch) |
| Process.ProcessorAffinity | macOS |
| Process.MainWindowHandle | Linux und macOS |
| Process.Start(String, String, String, SecureString, String) | Linux und macOS |
| Process.Start(String, String, SecureString, String) | Linux und macOS |
| ProcessStartInfo.UserName | Linux und macOS |
| ProcessStartInfo.PasswordInClearText | Linux und macOS |
| ProcessStartInfo.Domain | Linux und macOS |
| ProcessStartInfo.LoadUserProfile | Linux und macOS |
| ProcessThread.BasePriority (nur „set“) | Linux und macOS |
| ProcessThread.BasePriority (nur „get“) | macOS |
| ProcessThread.ProcessorAffinity (nur „set“) | Linux und macOS |
System.IO
| Mitglied | Plattformen, auf denen eine Ausnahme ausgelöst wird |
|---|---|
| FileSystemInfo(SerializationInfo, StreamingContext) | Alle |
| FileSystemInfo.GetObjectData(SerializationInfo, StreamingContext) | Alle |
System.IO.Pipes
| Mitglied | Plattformen, auf denen eine Ausnahme ausgelöst wird |
|---|---|
| NamedPipeClientStream.NumberOfServerInstances | Linux und macOS |
| NamedPipeServerStream.GetImpersonationUserName() | Linux und macOS |
| PipeStream.InBufferSize | Linux und macOS |
| PipeStream.OutBufferSize | Linux und macOS |
| PipeStream.ReadMode (nur „set“) | Linux und macOS |
| PipeStream.WaitForPipeDrain() | Linux und macOS |
System.Media
| Mitglied | Plattformen, auf denen eine Ausnahme ausgelöst wird |
|---|---|
| SoundPlayer(SerializationInfo, StreamingContext) | Alle |
System.Net
* .NET 9 und höhere Versionen.
System.Net.NetworkInformation
| Mitglied | Plattformen, auf denen eine Ausnahme ausgelöst wird |
|---|---|
| Ping.Send | Windows (UWP) |
System.Net.Sockets
| Mitglied | Plattformen, auf denen eine Ausnahme ausgelöst wird |
|---|---|
| Socket(SocketInformation) | Alle |
| Socket.DuplicateAndClose(Int32) | Alle |
System.Net.WebSockets
| Mitglied | Plattformen, auf denen eine Ausnahme ausgelöst wird |
|---|---|
| WebSocket.RegisterPrefixes() | Alle |
System.Reflection
| Mitglied | Plattformen, auf denen eine Ausnahme ausgelöst wird |
|---|---|
| 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
| Mitglied | Plattformen, auf denen eine Ausnahme ausgelöst wird |
|---|---|
| DebugInfoGenerator.CreatePdbGenerator() | Alle |
System.Runtime.InteropServices
| Mitglied | Plattformen, auf denen eine Ausnahme ausgelöst wird |
|---|---|
| IDispatchImplAttribute | Alle |
| Marshal.GetIDispatchForObject(Object) | Alle |
| RuntimeEnvironment.SystemConfigurationFile | Alle |
| RuntimeEnvironment.GetRuntimeInterfaceAsIntPtr(Guid, Guid) | Alle |
| RuntimeEnvironment.GetRuntimeInterfaceAsObject(Guid, Guid) | Alle |
| WindowsRuntimeMarshal.StringToHString(String) | Linux und macOS |
| WindowsRuntimeMarshal.PtrToStringHString(IntPtr) | Linux und macOS |
| WindowsRuntimeMarshal.FreeHString(IntPtr) | Linux und macOS |
System.Runtime.Serialization
| Mitglied | Plattformen, auf denen eine Ausnahme ausgelöst wird |
|---|---|
| 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 und höhere Versionen. † .NET 8 nur für alle Projekttypen außer Windows Forms und WPF.
System.Security
| Mitglied | Plattformen, auf denen eine Ausnahme ausgelöst wird |
|---|---|
| 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
| Mitglied | Plattformen, auf denen eine Ausnahme ausgelöst wird |
|---|---|
| ClaimsPrincipal(SerializationInfo, StreamingContext) | Alle |
| ClaimsPrincipal.GetObjectData(SerializationInfo, StreamingContext) | Alle |
| ClaimsIdentity(SerializationInfo) | Alle |
| ClaimsIdentity(SerializationInfo, StreamingContext) | Alle |
| ClaimsIdentity.GetObjectData(SerializationInfo, StreamingContext) | Alle |
System.Security.Cryptography
* .NET 11 und höhere Versionen.
System.Security.Cryptography.Pkcs
| Mitglied | Plattformen, auf denen eine Ausnahme ausgelöst wird |
|---|---|
| CmsSigner(CspParameters) | Alle |
| SignerInfo.ComputeCounterSignature() | Alle |
System.Security.Cryptography.X509Certificates
| Mitglied | Plattformen, auf denen eine Ausnahme ausgelöst wird |
|---|---|
| X509Certificate(SerializationInfo, StreamingContext) | Alle |
| X509Certificate.Import | Alle |
| X509Certificate2(SerializationInfo, StreamingContext) | Alle |
| X509Certificate2.PrivateKey (nur „set“) | Alle |
System.Security.Authentication.ExtendedProtection
| Mitglied | Plattformen, auf denen eine Ausnahme ausgelöst wird |
|---|---|
| ExtendedProtectionPolicy(SerializationInfo, StreamingContext) | Alle |
System.Security.Policy
| Mitglied | Plattformen, auf denen eine Ausnahme ausgelöst wird |
|---|---|
| Hash.GetObjectData(SerializationInfo, StreamingContext) | Alle |
System.ServiceProcess.ServiceController
| Mitglied | Plattformen, auf denen eine Ausnahme ausgelöst wird |
|---|---|
| TimeoutException(SerializationInfo, StreamingContext) | Alle |
System.Text.RegularExpressions
| Mitglied | Plattformen, auf denen eine Ausnahme ausgelöst wird |
|---|---|
| Regex.CompileToAssembly | Alle |
System.Threading
| Mitglied | Plattformen, auf denen eine Ausnahme ausgelöst wird |
|---|---|
| CompressedStack.GetObjectData(SerializationInfo, StreamingContext) | Alle |
| ExecutionContext.GetObjectData(SerializationInfo, StreamingContext) | Alle |
| Thread.Abort | Alle |
| Thread.ResetAbort() | Alle |
| Thread.Resume() | Alle |
| Thread.Suspend() | Alle |
System.Xml
| Mitglied | Plattformen, auf denen eine Ausnahme ausgelöst wird |
|---|---|
| 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 (bei Festlegung auf true) |
Alle |