Definition
- Namespace:
- Tizen.System
- Assembly:
- Tizen.System.Storage.dll
- API Level:
- 3
The class to access the storage device information.
- Inheritance
-
Properties
View Source
AvailableSpace
The available storage size in bytes.
Declaration
public ulong AvailableSpace { get; }
Property Value
API Level: 5
View Source
AvaliableSpace
[Obsolete("Please do not use! this will be deprecated")]
Declaration
[Obsolete("Please do not use! This will be deprecated! Please use AvailableSpace instead!")]
public ulong AvaliableSpace { get; }
Property Value
API Level: 3
Declaration
public StorageDevice DeviceType { get; }
Property Value
Exceptions
API Level: 5
Declaration
public int Flags { get; }
Property Value
Type |
Description |
System.Int32 |
|
Exceptions
API Level: 5
Declaration
public string Fstype { get; }
Property Value
Type |
Description |
System.String |
|
Exceptions
API Level: 5
Declaration
public string Fsuuid { get; }
Property Value
Type |
Description |
System.String |
|
Exceptions
API Level: 5
Declaration
Property Value
Type |
Description |
System.Int32 |
|
API Level: 3
View Source
Primary
Information whether this is a primary partition.
Declaration
public bool Primary { get; }
Property Value
Exceptions
API Level: 5
View Source
RootDirectory
The root directory for the storage.
Declaration
public string RootDirectory { get; }
Property Value
Type |
Description |
System.String |
|
API Level: 3
Declaration
public StorageState State { get; }
Property Value
API Level: 3
Declaration
public StorageArea StorageType { get; }
Property Value
API Level: 3
View Source
TotalSpace
The total storage size in bytes.
Declaration
public ulong TotalSpace { get; }
Property Value
API Level: 3
Methods
View Source
GetAbsolutePath(DirectoryType)
Absolute path for a given directory type in the storage.
Declaration
public string GetAbsolutePath(DirectoryType dirType)
Parameters
Returns
Type |
Description |
System.String |
Absolute path for a given directory type in the storage.
|
Examples
// To get the video directories for all the supported storage,
var storageList = StorageManager.Storages as List<Storage>;
foreach (var storage in storageList)
{
string pathForVideoDir = storage.GetAbsolutePath(DirectoryType.Videos);
}
Exceptions
Type |
Condition |
System.ArgumentException |
Thrown when failed because of an invalid argument.
|
OutOfMemoryException |
Thrown when failed due to out of memory exception.
|
System.NotSupportedException |
Thrown when failed if the storage is not supported or the application does not have the permission to access the directory path.
|
API Level: 3
Privilege Level: public
Privilege: http://tizen.org/privilege/mediastoragehttp://tizen.org/privilege/systemsettingshttp://tizen.org/privilege/externalstorage
Events
View Source
StorageStateChanged
StorageStateChanged event. This event is occurred when a storage state changes.
Declaration
public event EventHandler StorageStateChanged
Event Type
Examples
myStorage.StorageStateChanged += (s, e) =>
{
var storage = s as Storage;
Console.WriteLine(string.Format("State Changed to {0}", storage.State));
}
API Level: 3