OSPlatform.Create(String) Yöntem

Tanım

Yeni bir OSPlatform örneği oluşturur.

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

Parametreler

osPlatform
String

Bu örneğin temsil ettiği platformun adı.

Döndürülenler

İşletim sistemini temsil osPlatform eden bir nesne.

Özel durumlar

osPlatform boş bir dizedir.

osPlatform, null'e eşittir.

Açıklamalar

Create yönteminin aşağıdaki dizelerle çağrılması, ilgili statik özellikten nesnenin OSPlatform alınmasıyla eşdeğerdir:

osPlatform dizesi OSPlatform özelliği
"FREEBSD" OSPlatform.FreeBSD
"LINUX" OSPlatform.Linux
"OSX" OSPlatform.OSX
"WINDOWS" OSPlatform.Windows

Şunlara uygulanır