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

Nome della piattaforma rappresentata da questa istanza.

Valori restituiti

Oggetto che rappresenta il osPlatform sistema operativo.

Eccezioni

osPlatform è una stringa vuota.

osPlatform è null.

Commenti

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

osPlatform string OSPlatform - proprietà
"FREEBSD" OSPlatform.FreeBSD
"LINUX" OSPlatform.Linux
"OSX" OSPlatform.OSX
"WINDOWS" OSPlatform.Windows

Si applica a