This topic has not yet been rated - Rate this topic

MSApp object

Provides helper functions that enable you to create such things as Blob and MSStream objects.

Syntax


var result = MSApp.member;

Members

The MSApp object has these types of members:

Methods

The MSApp object has these methods.

MethodDescription
addPublicLocalApplicationUri

Specifies local context URIs for the zone elevation that is allowed.

createBlobFromRandomAccessStream

Creates a Blob or msStream for the MSApp namespace.

createDataPackage

Converts the user’s or the applications’s specified range to an HTML fragment that can be shared.

createDataPackageFromSelection

Converts the user’s or the applications’s selection to an HTML fragment that can be shared.

createFileFromStorageFile

Converts a standard W3CFile object to its WinRT equivalent StorageFile.

createStreamFromInputStream

Creates an MSStream from an InputStream.

execUnsafeLocalFunction

Disables script injection validation for the passed function within the local context.

getHtmlPrintDocumentSource

Returns the source content for the content to be printed.

terminateApp

Terminates the current application and generates a failure report.

 

Remarks

The MSApp object is supported only for Windows Store apps built for Windows using JavaScript.

 

 

Build date: 11/27/2012

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.