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 from an IRandomAccessStream object. This method should be used when dealing with IRandomAccessStream objects in Apps in order to create a W3C based object from the stream. Once the blob is created, it can be used with the FileReader, URL APIs, and XMLHttpRequest. .

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.

createNewView

Opens the specified URI in a new view.

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 that is to be printed.

getViewOpener

Gets the window (app view) for the current app.

terminateApp

Terminates the current application and generates a failure report.

 

Remarks

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

 

 

Build date: 12/16/2013

Show:
© 2014 Microsoft