OSPlatform.Create(String) メソッド

定義

新しい OSPlatform のインスタンスを作成します。

public:
 static System::Runtime::InteropServices::OSPlatform Create(System::String ^ osPlatform);
public static System.Runtime.InteropServices.OSPlatform Create (string osPlatform);
static member Create : string -> System.Runtime.InteropServices.OSPlatform
Public Shared Function Create (osPlatform As String) As OSPlatform

パラメーター

osPlatform
String

このインスタンスが表すプラットフォームの名前。

戻り値

osPlatform オペレーティング システムを表すオブジェクト。

例外

osPlatform が空の文字列です。

osPlatformnullです。

注釈

次の Create 文字列を使用して メソッドを呼び出すことは、対応する静的プロパティから オブジェクトを取得することと OSPlatform 同じです。

osPlatform 文字列 OSPlatform プロパティ
"FREEBSD" OSPlatform.FreeBSD
"LINUX" OSPlatform.Linux
"OSX" OSPlatform.OSX
"WINDOWS" OSPlatform.Windows

適用対象