OSPlatform.Create(String) 메서드

정의

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

이 인스턴스가 나타내는 플랫폼의 이름입니다.

반품

운영 체제를 osPlatform 나타내는 개체입니다.

예외

osPlatform 은 빈 문자열입니다.

osPlatformnull입니다.

설명

Create 다음 문자열을 사용하여 메서드를 호출하는 것은 해당 정적 속성에서 개체를 OSPlatform 검색하는 것과 같습니다.

osPlatform 문자열 OSPlatform 속성
"FREEBSD" OSPlatform.FreeBSD
"LINUX" OSPlatform.Linux
"OSX" OSPlatform.OSX
"WINDOWS" OSPlatform.Windows

적용 대상