OSPlatform.Create(String) Metoda

Definicja

Tworzy nowy obiekt 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

Parametry

osPlatform
String

Nazwa platformy reprezentowanej przez to wystąpienie.

Zwraca

Obiekt reprezentujący osPlatform system operacyjny.

Wyjątki

osPlatform jest pustym ciągiem.

Parametr osPlatform ma wartość null.

Uwagi

Create Wywołanie metody za pomocą następujących ciągów jest równoważne pobieraniu OSPlatform obiektu z odpowiedniej właściwości statycznej:

ciąg osPlatform Właściwość OSPlatform
"FREEBSD" OSPlatform.FreeBSD
"LINUX" OSPlatform.Linux
"OSX" OSPlatform.OSX
"WINDOWS" OSPlatform.Windows

Dotyczy