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.

반환

Boolean

현재 애플리케이션이 지정된 플랫폼에서 실행되고 있으면 true이고, 그러지 않으면 false입니다.

적용 대상