Share via


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 olduğu platformun adı.

Döndürülenler

İşletim sistemini temsil osPlatform eden bir nesne.

Özel durumlar

osPlatform boş bir dizedir.

osPlatform, null değeridir.

Açıklamalar

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

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

Şunlara uygulanır