OSPlatform.Create(String) Méthode

Définition

Crée une nouvelle instance 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

Paramètres

osPlatform
String

Nom de la plateforme que cette instance représente.

Retours

Objet qui représente le système d’exploitation osPlatform .

Exceptions

osPlatform est une chaîne vide.

osPlatform a la valeur null.

Remarques

L’appel de la Create méthode avec les chaînes suivantes équivaut à récupérer l’objet OSPlatform à partir de la propriété statique correspondante :

chaîne osPlatform OSPlatform, propriété
« FREEBSD » OSPlatform.FreeBSD
« LINUX » OSPlatform.Linux
« OSX » OSPlatform.OSX
« WINDOWS » OSPlatform.Windows

S’applique à