OSPlatform.Create(String) Metodo

Definizione

Crea una nuova istanza di 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

Parametri

osPlatform
String

Il nome della piattaforma rappresentata dall'istanza.

Restituisce

Un oggetto che rappresenta il sistema operativo osPlatform.

Eccezioni

Il parametro osPlatform è una stringa vuota.

osPlatform è null.

Commenti

La chiamata al metodo con le stringhe seguenti equivale a recuperare l'oggetto CreateOSPlatform dalla proprietà statica corrispondente:

stringa osPlatform OsPlatform, proprietà
"FREEBSD" OSPlatform.FreeBSD
"LINUX" OSPlatform.Linux
"OSX" OSPlatform.OSX
"WINDOWS" OSPlatform.Windows

Si applica a