Click or drag to resize
GDStorageFile Class
Represents a file. Provides information about the file and its content, and ways to manipulate them.
Inheritance Hierarchy
SystemObject
  GDGDStorageFile

Namespace:  GD
Assembly:  GD (in GD.dll) Version: 255.255.255.255
Syntax
public sealed class GDStorageFile : IStorageItemProperties2, 
	IStorageItemPropertiesWithProvider, IStorageItemProperties, IRandomAccessStreamReference, IInputStreamReference, IStorageFilePropertiesWithAvailability, 
	IGDStorageItem, IGDStorageItem2, IGDStorageFile

The GDStorageFile type exposes the following members.

Properties
  NameDescription
Public propertyCode exampleAttributes
Gets the attributes of the current file.
Public propertyContentType
This property is not implemented yet.
Public propertyDateCreated
Gets the date and time that the current file was created.
Public propertyDisplayName
Gets the user-friendly name for the file.
Public propertyDisplayType
This property is not implemented yet.
Public propertyEncryptedPath
Gets the encrypted path of the file in secure storage, if the file has a path.
Public propertyCode exampleFileType
Gets the type (file name extension) of the file.
Public propertyFolderRelativeId
This property is not implemented yet.
Public propertyIsAvailable
Indicates if the file is local, is cached locally, or can be downloaded.
Public propertyName
Gets the name of the current file.
Public propertyPath
Gets the full path of the current file in the file system, if the path is available.
Public propertyProperties
This property is not implemented yet.
Public propertyProvider
Gets the StorageProvider object that contains info about the service that stores the current file.
Top
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

Reference