OSPlatform.Create(String) Metodo
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
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
- osPlatform
- String
Il nome della piattaforma rappresentata dall'istanza.
Un oggetto che rappresenta il sistema operativo osPlatform
.
Il parametro osPlatform
è una stringa vuota.
osPlatform
è null
.
La chiamata al Create metodo con le stringhe seguenti equivale a recuperare l'oggetto OSPlatform dalla proprietà statica corrispondente:
stringa osPlatform | OSPlatform - proprietà |
---|---|
"FREEBSD" | OSPlatform.FreeBSD |
"LINUX" | OSPlatform.Linux |
"OSX" | OSPlatform.OSX |
"WINDOWS" | OSPlatform.Windows |
Prodotto | Versioni |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Framework | 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET Standard | 1.1, 1.2, 1.3, 1.4, 1.6, 2.0, 2.1 |
Feedback su .NET
.NET è un progetto di open source. Selezionare un collegamento per fornire feedback: