次の API は、すべてまたは一部のプラットフォームの .NET (Core) で常に例外をスローします。 ほとんどの場合、スローされる例外は PlatformNotSupportedException です。
この記事では、影響を受ける API を名前空間別に整理します。
注
- この記事は進行中の作業です。 .NET 5 以降で例外をスローする API の完全な一覧ではありません。
- この記事には、.NET 5 以降でスローされるバイナリ シリアル化用の明示的なインターフェイス実装は含まれていません。 詳細については、「 .NET Core でのバイナリ シリアル化」を参照してください。
システム
System.CodeDom.Compiler
メンバー | スローするプラットフォーム |
---|---|
CodeDomProvider.CompileAssemblyFromDom | 全て |
CodeDomProvider.CompileAssemblyFromFile | 全て |
CodeDomProvider.CompileAssemblyFromSource | 全て |
System.Collections.Specialized
System.Configuration
メンバー | スローするプラットフォーム |
---|---|
System.Configuration.RsaProtectedConfigurationProvider (すべてのメンバー) | 全て |
System.Console
メンバー | スローするプラットフォーム |
---|---|
Console.Beep() | Linux と macOS |
Console.BufferHeight (設定のみ) | Linux と macOS |
Console.BufferWidth (設定のみ) | Linux と macOS |
Console.CursorSize (設定のみ) | Linux と macOS |
Console.CursorVisible (get のみ) | Linux と macOS |
Console.MoveBufferArea | Linux と macOS |
Console.SetWindowPosition | Linux と macOS |
Console.SetWindowSize | Linux と macOS |
Console.Title (get のみ) | Linux と macOS |
Console.WindowHeight (設定のみ) | Linux と macOS |
Console.WindowLeft (設定のみ) | Linux と macOS |
Console.WindowTop (設定のみ) | Linux と macOS |
Console.WindowWidth (設定のみ) | Linux と macOS |
System.Data.Common
メンバー | スローするプラットフォーム |
---|---|
DbDataReader.GetSchemaTable (NotSupportedException をスローする) | 全て |
System.Diagnostics.Process
メンバー | スローするプラットフォーム |
---|---|
Process.MaxWorkingSet (設定のみ) | Linux |
Process.MinWorkingSet (設定のみ) | Linux |
Process.ProcessorAffinity | macOS |
Process.MainWindowHandle | Linux と macOS |
Process.Start(String, String, String, SecureString, String) | Linux と macOS |
Process.Start(String, String, SecureString, String) | Linux と macOS |
ProcessStartInfo.UserName | Linux と macOS |
ProcessStartInfo.PasswordInClearText | Linux と macOS |
ProcessStartInfo.Domain | Linux と macOS |
ProcessStartInfo.LoadUserProfile | Linux と macOS |
ProcessThread.BasePriority (設定のみ) | Linux と macOS |
ProcessThread.BasePriority (get のみ) | macOS |
ProcessThread.ProcessorAffinity (設定のみ) | Linux と macOS |
System.IO
メンバー | スローするプラットフォーム |
---|---|
FileSystemInfo(SerializationInfo, StreamingContext) | 全て |
FileSystemInfo.GetObjectData(SerializationInfo, StreamingContext) | 全て |
System.IO.Pipes
メンバー | スローするプラットフォーム |
---|---|
NamedPipeClientStream.NumberOfServerInstances | Linux と macOS |
NamedPipeServerStream.GetImpersonationUserName() | Linux と macOS |
PipeStream.InBufferSize | Linux と macOS |
PipeStream.OutBufferSize | Linux と macOS |
PipeStream.ReadMode (設定のみ) | Linux と macOS |
PipeStream.WaitForPipeDrain() | Linux と macOS |
System.Media
メンバー | スローするプラットフォーム |
---|---|
SoundPlayer(SerializationInfo, StreamingContext) | 全て |
System.Net
* .NET 9 以降のバージョン。
System.Net.NetworkInformation
メンバー | スローするプラットフォーム |
---|---|
Ping.Send | Windows (UWP) |
System.Net.Sockets
メンバー | スローするプラットフォーム |
---|---|
Socket(SocketInformation) | 全て |
Socket.DuplicateAndClose(Int32) | 全て |
System.Net.WebSockets
メンバー | スローするプラットフォーム |
---|---|
WebSocket.RegisterPrefixes() | 全て |
System.Reflection
System.Runtime.CompilerServices
メンバー | スローするプラットフォーム |
---|---|
DebugInfoGenerator.CreatePdbGenerator() | 全て |
System.Runtime.InteropServices
System.Runtime.Serialization
* .NET 9 以降のバージョン。 † .NET 8 は、Windows フォームと WPF を除くすべてのプロジェクトの種類に対してのみです。
System.Security
System.Security.Claims
System.Security.Cryptography
System.Security.Cryptography.Pkcs
メンバー | スローするプラットフォーム |
---|---|
CmsSigner(CspParameters) | 全て |
SignerInfo.ComputeCounterSignature() | 全て |
System.Security.Cryptography.X509Certificates
メンバー | スローするプラットフォーム |
---|---|
X509Certificate(SerializationInfo, StreamingContext) | 全て |
X509Certificate.Import | 全て |
X509Certificate2(SerializationInfo, StreamingContext) | 全て |
X509Certificate2.PrivateKey (設定のみ) | 全て |
System.Security.Authentication.ExtendedProtection
メンバー | スローするプラットフォーム |
---|---|
ExtendedProtectionPolicy(SerializationInfo, StreamingContext) | 全て |
System.Security.Policy
メンバー | スローするプラットフォーム |
---|---|
Hash.GetObjectData(SerializationInfo, StreamingContext) | 全て |
System.ServiceProcess.ServiceController
メンバー | スローするプラットフォーム |
---|---|
TimeoutException(SerializationInfo, StreamingContext) | 全て |
System.Text.RegularExpressions
メンバー | スローするプラットフォーム |
---|---|
Regex.CompileToAssembly | 全て |
System.Threading
System.Xml
こちらも参照ください
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
.NET