![]() |
BlackBerry Dynamics for .NET Maui
12.1.1.5
Runtime library for .NET Maui applications
|
An interface representing a file entry on the BBD secure file system. More...
Public Member Functions | |
Task< IBBDMetadata > | GetMetadataAsync () |
Gets state of a file entry on the BBD secure file system. More... | |
Task< string > | ReadAllTextAsync () |
Reads file in the secure store as string. More... | |
Task | WriteAllTextAsync (string contents) |
Writes string to the single file in the secure store. More... | |
Task< byte[]> | ReadAllDataAsync () |
Reads file in the secure store as byte array. More... | |
Task | WriteAllDataAsync (byte[] data) |
Writes byte array to the single file in the secure store. More... | |
Task< bool > | RemoveAsync () |
Deletes a file. More... | |
Task< IBBDDirectoryEntry > | GetParentAsync () |
Looks up the parent IBBDDirectoryEntry of this entry. More... | |
Task< IBBDFileEntry > | CopyAsync (string destination, string newName="") |
Copies a file to a different location on the file system. More... | |
Task< IBBDFileEntry > | MoveAsync (string destination, string newName="") |
Moves a file to a different location on the file system. More... | |
Task< IBBDFileEntry > | RenameAsync (string newName) |
Renames a filename. More... | |
Properties | |
string | Name [get] |
Gets the file 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 interface. IBBDFileSystem class. More... | |
An interface representing a file entry on the BBD secure file system.
Task<IBBDFileEntry> BBDXamarinForms.Common.Interfaces.SecureStorage.IBBDFileEntry.CopyAsync | ( | string | destination, |
string | newName = "" |
||
) |
Copies a file to a different location on the file system.
Exceptions.BBDFileSystemException | Thrown if there is already a file or directory at the destination. |
destination | The directory to which to copy the file. |
newName | The new name of the file. Defaults to the current name if unspecified. |
IBBDFileEntry
.Task<IBBDMetadata> BBDXamarinForms.Common.Interfaces.SecureStorage.IBBDFileEntry.GetMetadataAsync | ( | ) |
Gets state of a file entry on the BBD secure file system.
Exceptions.BBDFileSystemException | Thrown when error occurs. |
IBBDMetadata
interface.Task<IBBDDirectoryEntry> BBDXamarinForms.Common.Interfaces.SecureStorage.IBBDFileEntry.GetParentAsync | ( | ) |
Looks up the parent IBBDDirectoryEntry of this entry.
Exceptions.BBDFileSystemException | Thrown if an error occurs when attempting to get the parent. |
IBBDDirectoryEntry
Task<IBBDFileEntry> BBDXamarinForms.Common.Interfaces.SecureStorage.IBBDFileEntry.MoveAsync | ( | string | destination, |
string | newName = "" |
||
) |
Moves a file to a different location on the file system.
Exceptions.BBDFileSystemException | Thrown if there is already a file or directory at the destination (except to move to the same filename). |
destination | The directory to which to move the file. |
newName | The new name of the file. Defaults to the current name if unspecified. |
IBBDFileEntry
or this
if moved to the same location without name changing.Task<byte[]> BBDXamarinForms.Common.Interfaces.SecureStorage.IBBDFileEntry.ReadAllDataAsync | ( | ) |
Reads file in the secure store as byte array.
Exceptions.BBDFileSystemException | Thrown when the file can not be read. |
Task<string> BBDXamarinForms.Common.Interfaces.SecureStorage.IBBDFileEntry.ReadAllTextAsync | ( | ) |
Reads file in the secure store as string.
Exceptions.BBDFileSystemException | Thrown when the file can not be read. |
Task<bool> BBDXamarinForms.Common.Interfaces.SecureStorage.IBBDFileEntry.RemoveAsync | ( | ) |
Deletes a file.
All further file entry operations are forbidden.
Exceptions.BBDFileSystemException | Thrown if an error occurs when attempting to delete the file. |
true
if the file was successfully deleted; otherwise, false
.Task<IBBDFileEntry> BBDXamarinForms.Common.Interfaces.SecureStorage.IBBDFileEntry.RenameAsync | ( | string | newName | ) |
Renames a filename.
Rename to the same filename is allowed.
Exceptions.BBDFileSystemException | Thrown if there is already a file or directory with the same name (except to rename to the same filename). |
newName | The new name of the file. |
IBBDFileEntry
or this
if renamed to the same filename.Task BBDXamarinForms.Common.Interfaces.SecureStorage.IBBDFileEntry.WriteAllDataAsync | ( | byte[] | data | ) |
Writes byte array to the single file in the secure store.
Writes to the beginning of the file (will overwrite existing data).
Exceptions.BBDFileSystemException | Thrown when the file can not be written. |
data | Byte array to write. |
Task BBDXamarinForms.Common.Interfaces.SecureStorage.IBBDFileEntry.WriteAllTextAsync | ( | string | contents | ) |
Writes string to the single file in the secure store.
Writes to the beginning of the file (will overwrite existing data).
Exceptions.BBDFileSystemException | Thrown when the file can not be written. |
contents | UTF-8 string to write. |
|
get |
Gets the enrypted full path.
The encrypted absolute full path to the file entry.
|
get |
Gets the BBD secure file system interface. IBBDFileSystem class.
BBD secure file system on which the file entry resides.
|
get |
Gets the full path.
The absolute full path to the file entry.
|
get |
Gets the file entry name.
Name of the file entry, excluding the path leading to it.