hasWinRT property

Applies to Windows and Windows Phone

Determines whether the Windows Runtime API is accessible in this context.

Syntax


 var winRT = WinJS.Utilities.hasWinRT;

Property value

Type:

true if it is possible to call Windows Runtime properties and methods in this context (for example, in a WinJS app), or false if it is not possible (for example, in an Internet Explorer script).

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1

Namespace

WinJS.Utilities

Library

Base.js

 

 

Show:
© 2014 Microsoft