EN
このコンテンツは設定された言語で表示できません。英語版のページが表示されます。

MSApp Methods

This section describes MSApp methods, which support Windows Store apps using JavaScript.

Note  The MSApp object and its members are supported only for Windows Store apps using JavaScript.

In this section

TopicDescription

addPublicLocalApplicationUri

Specifies local context Uniform Resource Identifiers (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 World Wide Web Consortium (W3C)File 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.

getViewOpener

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

getHtmlPrintDocumentSource

Returns the source content that is to be printed.

terminateApp

Terminates the current application and generates a failure report.

 

 

 

Build date: 12/16/2013

表示:
© 2014 Microsoft