BlackBerry Dynamics for .NET Maui
12.1.1.5
Runtime library for .NET Maui applications
|
An interface representing a directory entry on the BBD secure file system. More...
Public Member Functions | |
Task< IBBDMetadata > | GetMetadataAsync () |
Gets state of a directory entry on the BBD secure file system. More... | |
Task< IBBDFileEntry > | CreateFileAsync (string desiredName) |
Creates an empty file in the secure file system. More... | |
Task< IBBDDirectoryEntry > | CreateDirectoryAsync (string desiredName) |
Creates a directory in the current directory of secure file system. More... | |
Task< IBBDDirectoryEntry > | GetDirectoryAsync (string name) |
Gets decrypted directory entry that is in the instance's directory. More... | |
Task< IList< IBBDDirectoryEntry > > | GetDirectoriesAsync () |
Gets list of the decrypted directory entries that are in the instance's directory. More... | |
Task< IBBDFileEntry > | GetFileAsync (string name) |
Gets decrypted file entry that is in the instance's directory. More... | |
Task< IList< IBBDFileEntry > > | GetFilesAsync () |
Gets list of the decrypted file entries that are in the instance's directory. More... | |
Task< ExistenceCheckResultEnum > | CheckExistsAsync (string name) |
Checks whether a directory or file exists at the current location. More... | |
Task< bool > | RemoveAsync () |
Deletes a directory. It is an error to attempt to delete a directory that is not empty or the root directory of filesystem. More... | |
Task< bool > | RemoveRecursivelyAsync () |
Task< IBBDDirectoryEntry > | GetParentAsync () |
Looks up the parent IBBDDirectoryEntry of this entry. More... | |
Task< IBBDDirectoryEntry > | CopyAsync (string destination, string newName="") |
Copies a directory to a different location on the file system. More... | |
Task< IBBDDirectoryEntry > | MoveAsync (string destination, string newName="") |
Moves a directory to a different location on the file system. More... | |
Task< IBBDDirectoryEntry > | RenameAsync (string newName) |
Renames a directory. More... | |
Properties | |
string | Name [get] |
Gets the directory entry name. More... | |
string | FullPath [get] |
Gets the full path. More... | |
string | EncryptedFullPath [get] |
Gets the enrypted full path. More... | |
IBBDFileSystem | FileSystem [get] |
Gets the BBD secure file system. IBBDFileSystem class. More... | |
An interface representing a directory entry on the BBD secure file system.
Task<ExistenceCheckResultEnum> BBDXamarinForms.Common.Interfaces.SecureStorage.IBBDDirectoryEntry.CheckExistsAsync | ( | string | name | ) |
Checks whether a directory or file exists at the current location.
Directory separator chars will be trimmed from the beginning and the end of the name.
Directory separator char is forbidden in the middle of the name.
System.Exception | Thrown when error occurs. |
name | The name of the file or directory to check for. |
ExistenceCheckResultEnum
NotFound
if the file or directory doesn't exist; FileExists
if the file exists, FolderExists
if directory exists
Task<IBBDDirectoryEntry> BBDXamarinForms.Common.Interfaces.SecureStorage.IBBDDirectoryEntry.CopyAsync | ( | string | destination, |
string | newName = "" |
||
) |
Copies a directory to a different location on the file system.
Directory copy is recursive - copies all contents of the directory.
Exceptions.BBDFileSystemException | Thrown if there is already a file or directory at the destination. |
destination | The directory to which to copy the directory. |
newName | The new name of the directory. Defaults to the current name if unspecified. |
IBBDDirectoryEntry
.Task<IBBDDirectoryEntry> BBDXamarinForms.Common.Interfaces.SecureStorage.IBBDDirectoryEntry.CreateDirectoryAsync | ( | string | desiredName | ) |
Creates a directory in the current directory of secure file system.
If there is already a file or directory at the instance's path, then this method will fail.
Directory separator chars will be trimmed from the beginning and the end of the desiredName.
Directory separator char is forbidden in the middle of the desiredName.
Exceptions.BBDFileSystemException | Thrown when directory can not be created. |
desiredName | Name of the directory. |
IBBDDirectoryEntry
interface.Task<IBBDFileEntry> BBDXamarinForms.Common.Interfaces.SecureStorage.IBBDDirectoryEntry.CreateFileAsync | ( | string | desiredName | ) |
Creates an empty file in the secure file system.
If there is already a file or directory at the instance's path, then this method will fail.
Directory separator chars will be trimmed from the beginning and the end of the desiredName.
Directory separator char is forbidden in the middle of the desiredName.
Exceptions.BBDFileSystemException | Thrown when file can not be created. |
desiredName | Name of the file. |
IBBDFileEntry
interface.Task<IList<IBBDDirectoryEntry> > BBDXamarinForms.Common.Interfaces.SecureStorage.IBBDDirectoryEntry.GetDirectoriesAsync | ( | ) |
Gets list of the decrypted directory entries that are in the instance's directory.
System.Exception | Thrown when error occurs. |
IBBDDirectoryEntry
interfaces.Task<IBBDDirectoryEntry> BBDXamarinForms.Common.Interfaces.SecureStorage.IBBDDirectoryEntry.GetDirectoryAsync | ( | string | name | ) |
Gets decrypted directory entry that is in the instance's directory.
Exceptions.BBDFileSystemException | Thrown when directory does not exist. |
name | Name of the directory. |
IBBDDirectoryEntry
interface.Task<IBBDFileEntry> BBDXamarinForms.Common.Interfaces.SecureStorage.IBBDDirectoryEntry.GetFileAsync | ( | string | name | ) |
Gets decrypted file entry that is in the instance's directory.
Exceptions.BBDFileSystemException | Thrown when file does not exist. |
name | Name of the file. |
IBBDFileEntry
interface.Task<IList<IBBDFileEntry> > BBDXamarinForms.Common.Interfaces.SecureStorage.IBBDDirectoryEntry.GetFilesAsync | ( | ) |
Gets list of the decrypted file entries that are in the instance's directory.
System.Exception | Thrown when error occurs. |
IBBDFileEntry
interfaces.Task<IBBDMetadata> BBDXamarinForms.Common.Interfaces.SecureStorage.IBBDDirectoryEntry.GetMetadataAsync | ( | ) |
Gets state of a directory entry on the BBD secure file system.
Exceptions.BBDFileSystemException | Thrown when error occurs. |
IBBDMetadata
interface.Task<IBBDDirectoryEntry> BBDXamarinForms.Common.Interfaces.SecureStorage.IBBDDirectoryEntry.GetParentAsync | ( | ) |
Looks up the parent IBBDDirectoryEntry of this entry.
Exceptions.BBDFileSystemException | Thrown if an error occurs when attempting to get the parent. |
IBBDDirectoryEntry
or null
if looks up for root's parentTask<IBBDDirectoryEntry> BBDXamarinForms.Common.Interfaces.SecureStorage.IBBDDirectoryEntry.MoveAsync | ( | string | destination, |
string | newName = "" |
||
) |
Moves a directory to a different location on the file system.
Directory move is recursive - moves all contents of the directory.
Exceptions.BBDFileSystemException | Thrown if there is already a file or directory at the destination (except to move to the same directory name). |
destination | The directory to which to move the directory. |
newName | The new name of the directory. Defaults to the current name if unspecified. |
IBBDDirectoryEntry
or this
if moved to the same location without name changing.Task<bool> BBDXamarinForms.Common.Interfaces.SecureStorage.IBBDDirectoryEntry.RemoveAsync | ( | ) |
Deletes a directory. It is an error to attempt to delete a directory that is not empty or the root directory of filesystem.
Exceptions.BBDFileSystemException | Thrown when directory is not empty or is the root directory of filesystem. |
true
if the directory was successfully deleted; otherwise, false
.Task<bool> BBDXamarinForms.Common.Interfaces.SecureStorage.IBBDDirectoryEntry.RemoveRecursivelyAsync | ( | ) |
Deletes a directory and all of its contents.
In the event of an error (e.g. trying to delete a directory that contains a file that cannot be removed), some of the contents of the directory may be deleted.
It is an error to attempt to delete the root directory of a filesystem.
Exceptions.BBDFileSystemException | Thrown when directory is the root directory of filesystem. |
true
if the directory was successfully deleted; otherwise, false
.Task<IBBDDirectoryEntry> BBDXamarinForms.Common.Interfaces.SecureStorage.IBBDDirectoryEntry.RenameAsync | ( | string | newName | ) |
Renames a directory.
Rename to the same name is allowed.
Exceptions.BBDFileSystemException | Thrown if there is already a file or directory with the same name (except to rename to the same name) or if the current directory is the root directory of the filesystem. |
newName | The new name of the directory. |
IBBDDirectoryEntry
or this
if renamed to the same directory name.
|
get |
Gets the enrypted full path.
The encrypted absolute full path to the directory entry.
|
get |
Gets the BBD secure file system. IBBDFileSystem class.
BBD secure file system on which the directory entry resides.
|
get |
Gets the full path.
The absolute full path to the directory entry.
|
get |
Gets the directory entry name.
Name of the directory entry, excluding the path leading to it.