Class StorageFile

Index

Properties

Methods

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

Returns

IAsyncAction

public copyAsync(destinationFolder: IStorageFolder): IAsyncOperation

Parameters

Returns

IAsyncOperation

public copyAsync(destinationFolder: IStorageFolder, desiredNewName: string): IAsyncOperation

Parameters

Returns

IAsyncOperation

public copyAsync(destinationFolder: IStorageFolder, desiredNewName: string, option: NameCollisionOption): IAsyncOperation

Parameters

Returns

IAsyncOperation

public static createStreamedFileAsync(displayNameWithExtension: string, dataRequested: StreamedFileDataRequestedHandler, thumbnail: IRandomAccessStreamReference): IAsyncOperation

Parameters

Returns

IAsyncOperation

public static createStreamedFileFromUriAsync(displayNameWithExtension: string, uri: Uri, thumbnail: IRandomAccessStreamReference): IAsyncOperation

Parameters

Returns

IAsyncOperation

public deleteAsync(): IAsyncAction

Returns

IAsyncAction

public deleteAsync(option: StorageDeleteOption): IAsyncAction

Parameters

Returns

IAsyncAction

public getBasicPropertiesAsync(): IAsyncOperation

Returns

IAsyncOperation

public static getFileFromApplicationUriAsync(uri: Uri): IAsyncOperation

Parameters

Returns

IAsyncOperation

public static getFileFromPathAsync(path: string): IAsyncOperation

Parameters

  • path: string

Returns

IAsyncOperation

public getThumbnailAsync(mode: ThumbnailMode): IAsyncOperation

Parameters

Returns

IAsyncOperation

public getThumbnailAsync(mode: ThumbnailMode, requestedSize: number): IAsyncOperation

Parameters

Returns

IAsyncOperation

public getThumbnailAsync(mode: ThumbnailMode, requestedSize: number, options: ThumbnailOptions): IAsyncOperation

Parameters

Returns

IAsyncOperation

public isOfType(type: StorageItemTypes): boolean

Parameters

Returns

boolean

public moveAndReplaceAsync(fileToReplace: IStorageFile): IAsyncAction

Parameters

Returns

IAsyncAction

public moveAsync(destinationFolder: IStorageFolder): IAsyncAction

Parameters

Returns

IAsyncAction

public moveAsync(destinationFolder: IStorageFolder, desiredNewName: string): IAsyncAction

Parameters

Returns

IAsyncAction

public moveAsync(destinationFolder: IStorageFolder, desiredNewName: string, option: NameCollisionOption): IAsyncAction

Parameters

Returns

IAsyncAction

public openAsync(accessMode: FileAccessMode): IAsyncOperation

Parameters

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

Returns

IAsyncAction

public static replaceWithStreamedFileAsync(fileToReplace: IStorageFile, dataRequested: StreamedFileDataRequestedHandler, thumbnail: IRandomAccessStreamReference): IAsyncOperation

Parameters

Returns

IAsyncOperation

public static replaceWithStreamedFileFromUriAsync(fileToReplace: IStorageFile, uri: Uri, thumbnail: IRandomAccessStreamReference): IAsyncOperation

Parameters

Returns

IAsyncOperation