Click or drag to resize
GDStorageFile Methods

The GDStorageFile type exposes the following members.

Methods
  NameDescription
Public methodCopyAndReplaceAsync
Replaces the specified file with a copy of the current file.
Public methodCode exampleCopyAsync(IGDStorageFolder)
Creates a copy of the file in the specified folder.
Public methodCode exampleCopyAsync(IGDStorageFolder, String)
Creates a copy of the file in the specified folder and renames the copy.
Public methodCode exampleCopyAsync(IGDStorageFolder, String, NameCollisionOption)
Creates a copy of the file in the specified folder and renames the copy. This method also specifies what to do if a file with the same name already exists in the destination folder.
Public methodStatic memberCreateStreamedFileAsync
This method is not implemented yet.
Public methodStatic memberCreateStreamedFileFromUriAsync
This method is not implemented yet.
Public methodCode exampleDeleteAsync
Deletes the current file.
Public methodCode exampleDeleteAsync(StorageDeleteOption)
Deletes the current file.
Public methodEquals (Inherited from Object.)
Public methodExportFromSecureStorageAsync(IStorageFolder)
Exports an encrypted file from BlackBerry Dynamics secure storage to an external unencrypted location.
Public methodExportFromSecureStorageAsync(IStorageFolder, String)
Exports an encrypted file from BlackBerry Dynamics secure storage to an external unencrypted location and changes name of exported file.
Public methodExportFromSecureStorageAsync(IStorageFolder, NameCollisionOption)
Exports an encrypted file from BlackBerry Dynamics secure storage to an external unencrypted location. This method also specifies what to do if a file with the same name already exists in the destination folder.
Public methodExportFromSecureStorageAsync(IStorageFolder, String, NameCollisionOption)
Exports an encrypted file from BlackBerry Dynamics secure storage to an external unencrypted location and changes name of exported file. This method also specifies what to do if a file with the same name already exists in the destination folder.
Public methodGetBasicPropertiesAsync
Gets the basic properties of the current file.
Public methodStatic memberCode exampleGetFileFromApplicationUriAsync
Gets a GDStorageFile object to represent the specified URI secure container resource.
Public methodStatic memberGetFileFromPathAsync
Gets a GDStorageFile object to represent the file at the specified path.
Public methodGetHashCode (Inherited from Object.)
Public methodGetParentAsync
Gets the parent folder of the current file.
Public methodGetScaledImageAsThumbnailAsync(ThumbnailMode)
Gets a scaled image as a thumbnail, determined by the purpose of the thumbnail.
Public methodGetScaledImageAsThumbnailAsync(ThumbnailMode, UInt32)
Gets a scaled image as a thumbnail, determined by the purpose of the thumbnail.
Public methodGetScaledImageAsThumbnailAsync(ThumbnailMode, UInt32, ThumbnailOptions)
Gets a scaled image as a thumbnail, determined by the purpose of the thumbnail.
Public methodGetThumbnailAsync(ThumbnailMode)
Gets a thumbnail image for the current file, sized for the specified purpose of the thumbnail.
Public methodGetThumbnailAsync(ThumbnailMode, UInt32)
Gets a thumbnail image for the current file, sized for the specified purpose of the thumbnail.
Public methodGetThumbnailAsync(ThumbnailMode, UInt32, ThumbnailOptions)
Gets a thumbnail image for the current file, sized for the specified purpose of the thumbnail.
Public methodGetType (Inherited from Object.)
Public methodIsEqual
Indicates whether the current file is equal to the specified file.
Public methodIsOfType
Indicates whether the current GDStorageFile matches the specified StorageItemTypes value.
Public methodMoveAndReplaceAsync
Moves the current file to the location of the specified file and replaces the specified file in that location.
Public methodMoveAsync(IGDStorageFolder)
Moves the current file to the specified folder.
Public methodMoveAsync(IGDStorageFolder, String)
Moves the current file to the specified folder and renames the file according to the desired name.
Public methodMoveAsync(IGDStorageFolder, String, NameCollisionOption)
Moves the current file to the specified folder and renames the file according to the desired name. This method also specifies what to do if a file with the same name already exists in the specified folder.
Public methodStatic memberMoveToSecureStorageAsync(IStorageFile, IGDStorageFolder)
Moves external file to BlackBerry Dynamics secure storage.
Public methodStatic memberMoveToSecureStorageAsync(IStorageFile, IGDStorageFolder, String)
Moves external file to BlackBerry Dynamics secure storage and changes name of moved file.
Public methodStatic memberMoveToSecureStorageAsync(IStorageFile, IGDStorageFolder, NameCollisionOption)
Moves external file to BlackBerry Dynamics secure storage. This method also specifies what to do if a file with the same name already exists in the destination folder.
Public methodStatic memberMoveToSecureStorageAsync(IStorageFile, IGDStorageFolder, String, NameCollisionOption)
Moves external file to BlackBerry Dynamics secure storage and changes name of moved file. This method also specifies what to do if a file with the same name already exists in the destination folder.
Public methodOpenAsync
Opens a random-access stream over the file.
Public methodOpenReadAsync
Opens a random-access stream over the current file for reading file contents.
Public methodOpenSequentialReadAsync
Opens a sequential-access stream over the current file for reading file contents.
Public methodOpenTransactedWriteAsync
Opens a random-access stream to the file that can be used for transacted-write operations.
Public methodRenameAsync(String)
Renames the current file.
Public methodRenameAsync(String, NameCollisionOption)
Renames the current file. This method also specifies what to do if an existing item in the current file's location has the same name.
Public methodStatic memberReplaceWithStreamedFileAsync
This method is not implemented yet.
Public methodStatic memberReplaceWithStreamedFileFromUriAsync
This method is not implemented yet.
Public methodToString (Inherited from Object.)
Top
See Also