Search
Preparing search index...
The search index is not available
DefinitelyTyped
Inherited
Private
Externals
Only exported
Windows
Storage
StorageFile
Class StorageFile
Index
Properties
attributes
contentType
dateCreated
displayName
displayType
fileType
folderRelativeId
name
path
properties
Methods
copyAndReplaceAsync
copyAsync
createStreamedFileAsync
createStreamedFileFromUriAsync
deleteAsync
getBasicPropertiesAsync
getFileFromApplicationUriAsync
getFileFromPathAsync
getThumbnailAsync
isOfType
moveAndReplaceAsync
moveAsync
openAsync
openReadAsync
openSequentialReadAsync
openTransactedWriteAsync
renameAsync
replaceWithStreamedFileAsync
replaceWithStreamedFileFromUriAsync
Properties
public
attributes
:
FileAttributes
public
contentType
:
string
public
dateCreated
:
Date
public
displayName
:
string
public
displayType
:
string
public
fileType
:
string
public
folderRelativeId
:
string
public
name
:
string
public
path
:
string
public
properties
:
StorageItemContentProperties
Methods
public
copyAndReplaceAsync
(
fileToReplace
:
IStorageFile
)
:
IAsyncAction
Parameters
fileToReplace:
IStorageFile
Returns
IAsyncAction
public
copyAsync
(
destinationFolder
:
IStorageFolder
)
:
IAsyncOperation
Parameters
destinationFolder:
IStorageFolder
Returns
IAsyncOperation
public
copyAsync
(
destinationFolder
:
IStorageFolder
, desiredNewName
:
string
)
:
IAsyncOperation
Parameters
destinationFolder:
IStorageFolder
desiredNewName:
string
Returns
IAsyncOperation
public
copyAsync
(
destinationFolder
:
IStorageFolder
, desiredNewName
:
string
, option
:
NameCollisionOption
)
:
IAsyncOperation
Parameters
destinationFolder:
IStorageFolder
desiredNewName:
string
option:
NameCollisionOption
Returns
IAsyncOperation
public
static
createStreamedFileAsync
(
displayNameWithExtension
:
string
, dataRequested
:
StreamedFileDataRequestedHandler
, thumbnail
:
IRandomAccessStreamReference
)
:
IAsyncOperation
Parameters
displayNameWithExtension:
string
dataRequested:
StreamedFileDataRequestedHandler
thumbnail:
IRandomAccessStreamReference
Returns
IAsyncOperation
public
static
createStreamedFileFromUriAsync
(
displayNameWithExtension
:
string
, uri
:
Uri
, thumbnail
:
IRandomAccessStreamReference
)
:
IAsyncOperation
Parameters
displayNameWithExtension:
string
uri:
Uri
thumbnail:
IRandomAccessStreamReference
Returns
IAsyncOperation
public
deleteAsync
(
)
:
IAsyncAction
Returns
IAsyncAction
public
deleteAsync
(
option
:
StorageDeleteOption
)
:
IAsyncAction
Parameters
option:
StorageDeleteOption
Returns
IAsyncAction
public
getBasicPropertiesAsync
(
)
:
IAsyncOperation
Returns
IAsyncOperation
public
static
getFileFromApplicationUriAsync
(
uri
:
Uri
)
:
IAsyncOperation
Parameters
uri:
Uri
Returns
IAsyncOperation
public
static
getFileFromPathAsync
(
path
:
string
)
:
IAsyncOperation
Parameters
path:
string
Returns
IAsyncOperation
public
getThumbnailAsync
(
mode
:
ThumbnailMode
)
:
IAsyncOperation
Parameters
mode:
ThumbnailMode
Returns
IAsyncOperation
public
getThumbnailAsync
(
mode
:
ThumbnailMode
, requestedSize
:
number
)
:
IAsyncOperation
Parameters
mode:
ThumbnailMode
requestedSize:
number
Returns
IAsyncOperation
public
getThumbnailAsync
(
mode
:
ThumbnailMode
, requestedSize
:
number
, options
:
ThumbnailOptions
)
:
IAsyncOperation
Parameters
mode:
ThumbnailMode
requestedSize:
number
options:
ThumbnailOptions
Returns
IAsyncOperation
public
isOfType
(
type
:
StorageItemTypes
)
:
boolean
Parameters
type:
StorageItemTypes
Returns
boolean
public
moveAndReplaceAsync
(
fileToReplace
:
IStorageFile
)
:
IAsyncAction
Parameters
fileToReplace:
IStorageFile
Returns
IAsyncAction
public
moveAsync
(
destinationFolder
:
IStorageFolder
)
:
IAsyncAction
Parameters
destinationFolder:
IStorageFolder
Returns
IAsyncAction
public
moveAsync
(
destinationFolder
:
IStorageFolder
, desiredNewName
:
string
)
:
IAsyncAction
Parameters
destinationFolder:
IStorageFolder
desiredNewName:
string
Returns
IAsyncAction
public
moveAsync
(
destinationFolder
:
IStorageFolder
, desiredNewName
:
string
, option
:
NameCollisionOption
)
:
IAsyncAction
Parameters
destinationFolder:
IStorageFolder
desiredNewName:
string
option:
NameCollisionOption
Returns
IAsyncAction
public
openAsync
(
accessMode
:
FileAccessMode
)
:
IAsyncOperation
Parameters
accessMode:
FileAccessMode
Returns
IAsyncOperation
public
openReadAsync
(
)
:
IAsyncOperation
Returns
IAsyncOperation
public
openSequentialReadAsync
(
)
:
IAsyncOperation
Returns
IAsyncOperation
public
openTransactedWriteAsync
(
)
:
IAsyncOperation
Returns
IAsyncOperation
public
renameAsync
(
desiredName
:
string
)
:
IAsyncAction
Parameters
desiredName:
string
Returns
IAsyncAction
public
renameAsync
(
desiredName
:
string
, option
:
NameCollisionOption
)
:
IAsyncAction
Parameters
desiredName:
string
option:
NameCollisionOption
Returns
IAsyncAction
public
static
replaceWithStreamedFileAsync
(
fileToReplace
:
IStorageFile
, dataRequested
:
StreamedFileDataRequestedHandler
, thumbnail
:
IRandomAccessStreamReference
)
:
IAsyncOperation
Parameters
fileToReplace:
IStorageFile
dataRequested:
StreamedFileDataRequestedHandler
thumbnail:
IRandomAccessStreamReference
Returns
IAsyncOperation
public
static
replaceWithStreamedFileFromUriAsync
(
fileToReplace
:
IStorageFile
, uri
:
Uri
, thumbnail
:
IRandomAccessStreamReference
)
:
IAsyncOperation
Parameters
fileToReplace:
IStorageFile
uri:
Uri
thumbnail:
IRandomAccessStreamReference
Returns
IAsyncOperation
Globals
Windows
Windows.ApplicationModel
Windows.ApplicationModel.Activation
Windows.ApplicationModel.Background
Windows.ApplicationModel.Contacts
Windows.ApplicationModel.Contacts.Provider
Windows.ApplicationModel.Core
Windows.ApplicationModel.DataTransfer
Windows.ApplicationModel.DataTransfer.ShareTarget
Windows.ApplicationModel.Resources
Windows.ApplicationModel.Resources.Core
Windows.ApplicationModel.Resources.Management
Windows.ApplicationModel.Search
Windows.ApplicationModel.Store
Windows.Data
Windows.Data.Html
Windows.Data.Json
Windows.Data.Xml
Windows.Data.Xml.Dom
Windows.Data.Xml.Xsl
Windows.Devices
Windows.Devices.Enumeration
Windows.Devices.Enumeration.Pnp
Windows.Devices.Geolocation
Windows.Devices.Input
Windows.Devices.Portable
Windows.Devices.Printers
Windows.Devices.Printers.Extensions
Windows.Devices.Sensors
Windows.Devices.Sms
Windows.Foundation
Windows.Foundation.Collections
Windows.Foundation.Diagnostics
Windows.Foundation.Metadata
Windows.Globalization
Windows.Globalization.Collation
Windows.Globalization.DateTimeFormatting
Windows.Globalization.Fonts
Windows.Globalization.NumberFormatting
Windows.Graphics
Windows.Graphics.Display
Windows.Graphics.Imaging
Windows.Graphics.Printing
Windows.Graphics.Printing.OptionDetails
Windows.Management
Windows.Management.Core
Windows.Management.Deployment
Windows.Media
Windows.Media.Capture
Windows.Media.Devices
Windows.Media.MediaProperties
Windows.Media.PlayTo
Windows.Media.Playlists
Windows.Media.Protection
Windows.Media.Transcoding
Windows.Networking
Windows.Networking.BackgroundTransfer
Windows.Networking.Connectivity
Windows.Networking.NetworkOperators
Windows.Networking.Proximity
Windows.Networking.PushNotifications
Windows.Networking.Sockets
Windows.Security
Windows.Security.Authentication
Windows.Security.Authentication.OnlineId
Windows.Security.Authentication.Web
Windows.Security.Credentials
Windows.Security.Credentials.UI
Windows.Security.Cryptography
Windows.Security.Cryptography.Certificates
Windows.Security.Cryptography.Core
Windows.Security.Cryptography.DataProtection
Windows.Security.ExchangeActiveSyncProvisioning
Windows.Storage
Windows.Storage.AccessCache
Windows.Storage.BulkAccess
Windows.Storage.Compression
Windows.Storage.FileProperties
Windows.Storage.Pickers
Windows.Storage.Pickers.Provider
Windows.Storage.Provider
Windows.Storage.Search
Windows.Storage.Streams
Windows.System
Windows.System.Display
Windows.System.Profile
Windows.System.RemoteDesktop
Windows.System.Threading
Windows.System.Threading.Core
Windows.System.UserProfile
Windows.UI
Windows.UI.ApplicationSettings
Windows.UI.Core
Windows.UI.Core.AnimationMetrics
Windows.UI.Input
Windows.UI.Input.Inking
Windows.UI.Notifications
Windows.UI.Popups
Windows.UI.StartScreen
Windows.UI.Text
Windows.UI.ViewManagement
Windows.UI.WebUI
Windows.Web
Windows.Web.AtomPub
Windows.Web.Syndication
ApplicationDataCreateDisposition
ApplicationDataLocality
CreationCollisionOption
FileAccessMode
FileAttributes
NameCollisionOption
StorageDeleteOption
StorageItemTypes
StreamedFileFailureMode
ApplicationDataSetVersionHandler
IApplicationData
IApplicationDataContainer
IApplicationDataStatics
ICachedFileManagerStatics
IDownloadsFolderStatics
IFileIOStatics
IKnownFoldersStatics
IPathIOStatics
ISetVersionDeferral
ISetVersionRequest
IStorageFile
IStorageFileStatics
IStorageFolder
IStorageFolderStatics
IStorageItem
IStorageItemProperties
IStorageStreamTransaction
IStreamedFileDataRequest
StreamedFileDataRequestedHandler
ApplicationData
ApplicationDataCompositeValue
ApplicationDataContainer
ApplicationDataContainerSettings
CachedFileManager
DownloadsFolder
FileIO
KnownFolders
PathIO
SetVersionDeferral
SetVersionRequest
StorageFile
attributes
contentType
dateCreated
displayName
displayType
fileType
folderRelativeId
name
path
properties
copyAndReplaceAsync
copyAsync
createStreamedFileAsync
createStreamedFileFromUriAsync
deleteAsync
getBasicPropertiesAsync
getFileFromApplicationUriAsync
getFileFromPathAsync
getThumbnailAsync
isOfType
moveAndReplaceAsync
moveAsync
openAsync
openReadAsync
openSequentialReadAsync
openTransactedWriteAsync
renameAsync
replaceWithStreamedFileAsync
replaceWithStreamedFileFromUriAsync
StorageFolder
StorageStreamTransaction
StreamedFileDataRequest