OSPlatform.Create(String) Metoda

Definicja

Tworzy nowe wystąpienie klasy 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

OSPlatform

Obiekt reprezentujący osPlatform system operacyjny.

Wyjątki

osPlatform jest pustym ciągiem.

osPlatform to null.

Uwagi

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

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

Dotyczy