Windows Dev Center

createFileFromStorageFile method

Converts a standard World Wide Web Consortium (W3C)File object to its WinRT equivalent StorageFile.

Syntax

var retVal = MSApp.createFileFromStorageFile(storageFile);

Parameters

storageFile [in]

Type: any

Exceptions

ExceptionCondition
TypeMismatchError

The specified W3C file reference is invalid. For versions earlier than a Windows Store app using JavaScript, TYPE_MISMATCH_ERR is returned.

 

See also

MSApp

 

 

Show:
© 2015 Microsoft