OperatingSystem.IsOSPlatform(String) 메서드

정의

현재 애플리케이션이 지정된 플랫폼에서 실행 중인지 여부를 나타냅니다.

public:
 static bool IsOSPlatform(System::String ^ platform);
public static bool IsOSPlatform(string platform);
static member IsOSPlatform : string -> bool
Public Shared Function IsOSPlatform (platform As String) As Boolean

매개 변수

platform
String

대/소문자를 구분하지 않는 플랫폼 이름입니다. 예: 브라우저, Linux, FreeBSD, Android, iOS, macOS, tvOS, watchOS, Windows.

반품

true 현재 애플리케이션이 지정된 플랫폼에서 실행 중이면 이고, false 그렇지 않으면.

적용 대상