Click or drag to resize
GDStorageFolder Class
Manages SDK secure folders and their contents and provides information about them.
Inheritance Hierarchy
SystemObject
  GDGDStorageFolder

Namespace:  GD
Assembly:  GD (in GD.dll) Version: 255.255.255.255
Syntax
public sealed class GDStorageFolder : IStorageItemProperties2, 
	IStorageItemPropertiesWithProvider, IStorageItemProperties, IGDStorageItem, IGDStorageItem2, IGDStorageFolder, 
	IGDStorageFolder2

The GDStorageFolder type exposes the following members.

Properties
  NameDescription
Public propertyCode exampleAttributes
Gets the attributes of the current folder.
Public propertyDateCreated
Gets the date and time that the current folder was created.
Public propertyDisplayName
Gets the user-friendly name of the current folder.
Public propertyDisplayType
Gets the user-friendly description of the type of the folder.
Public propertyEncryptedPath
Gets the encrypted path of the current folder in secure storage, if the folder has a path.
Public propertyFolderRelativeId
This property is not implemented yet.
Public propertyName
Gets the name of the current folder.
Public propertyPath
Gets the full path of the current folder 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 folder.
Top
Methods
  NameDescription
Public methodCode exampleCreateFileAsync(String)
Creates a new file with the specified name in the current folder.
Public methodCode exampleCreateFileAsync(String, CreationCollisionOption)
Creates a new file in the current folder. This method also specifies what to do if a file with the same name already exists in the current folder.
Public methodCode exampleCreateFolderAsync(String)
Creates a new subfolder with the specified name in the current folder.
Public methodCode exampleCreateFolderAsync(String, CreationCollisionOption)
Creates a new subfolder with the specified name in the current folder. This method also specifies what to do if a subfolder with the same name already exists in the current folder.
Public methodCode exampleDeleteAsync
Deletes the current folder.
Public methodCode exampleDeleteAsync(StorageDeleteOption)
Deletes the current folder.
Public methodEquals (Inherited from Object.)
Public methodGetBasicPropertiesAsync
Gets the basic properties of the current folder.
Public methodCode exampleGetFileAsync
Gets the specified file from the current folder.
Public methodCode exampleGetFilesAsync
Gets all the files from the current folder.
Public methodCode exampleGetFolderAsync
Gets the subfolder with the specified name from the current folder.
Public methodStatic memberCode exampleGetFolderFromPathAsync
Gets the folder that has the specified absolute path in the file system.
Public methodCode exampleGetFoldersAsync
Gets all the subfolders in the current folder.
Public methodGetHashCode (Inherited from Object.)
Public methodCode exampleGetItemAsync
Gets the file or folder with the specified name from the current folder.
Public methodCode exampleGetItemsAsync
Gets all the files and subfolders in the current folder.
Public methodGetParentAsync
Gets the parent folder of the current folder.
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 folder, sized for the specified purpose of the thumbnail.
Public methodGetThumbnailAsync(ThumbnailMode, UInt32)
Gets a thumbnail image for the current folder, sized for the specified purpose of the thumbnail.
Public methodGetThumbnailAsync(ThumbnailMode, UInt32, ThumbnailOptions)
Gets a thumbnail image for the current folder, sized for the specified purpose of the thumbnail.
Public methodGetType (Inherited from Object.)
Public methodIsEqual
Indicates whether the current folder is equal to the specified folder.
Public methodIsOfType
Indicates whether the current GDStorageFolder matches the specified StorageItemTypes value.
Public methodRenameAsync(String)
Renames the current folder.
Public methodRenameAsync(String, NameCollisionOption)
Renames the current folder and specifies what to do if a folder with the same name already exists.
Public methodToString (Inherited from Object.)
Public methodCode exampleTryGetItemAsync
Tries to get the file or folder with the specified name from the current folder. Returns null instead of raising an exception if the specified file or folder is not found.
Top
Remarks

Typically you get GDStorageFolder objects as the return value of asynchronous method calls. For example, the static method GetFolderFromPathAsync(String) returns a GDStorageFolder that represents the specified folder inside SDK secure storage. You can get root folder of SDK secure storage using SecureFolder property from GDWindows class.

Processing of all file names and paths in BlackBerry Dynamics is always case-sensitive.

All slashes (/) used in paths will be automatically converted to backslashes(\).

See Also

Reference