Class FilePayload
Definition
- Namespace:
- Tizen.Applications.Cion
- Assembly:
- Tizen.Applications.Cion.dll
- API Level:
- 9
A class to represent file type payload.
C#Copypublic class FilePayload : Payload
- Inheritance
Constructors
Declaration
C#Copypublic FilePayload(string path)
Parameters
Type | Name | Description |
---|---|---|
System.String | path | The path of file for the FilePayload. |
Remarks
http://tizen.org/privilege/mediastorage is needed if the file path is relevant to media storage. http://tizen.org/privilege/externalstorage is needed if the file path is relevant to external storage.
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown when the input file path is invalid. |
UnauthorizedAccessException | Thrown when an application does not have the privilege to access this method. |
API Level: 9
Properties
Declaration
C#Copypublic override PayloadType PayloadType { get; }
Property Value
Type | Description |
---|---|
PayloadType |
Overrides
API Level: 9
Declaration
C#Copypublic ulong ReceivedBytes { get; }
Property Value
Type | Description |
---|---|
System.UInt64 |
API Level: 9
Declaration
C#Copypublic string ReceivedFileName { get; }
Property Value
Type | Description |
---|---|
System.String |
API Level: 9
Declaration
C#Copypublic ulong TotalBytes { get; }
Property Value
Type | Description |
---|---|
System.UInt64 |
API Level: 9
Methods
Declaration
C#Copypublic void SaveAsFile(string path)
Parameters
Type | Name | Description |
---|---|---|
System.String | path | The path of file to save. |
Remarks
http://tizen.org/privilege/mediastorage is needed if the file path is relevant to media storage. http://tizen.org/privilege/externalstorage is needed if the file path is relevant to external storage.
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown when the input file path is invalid. |
UnauthorizedAccessException | Thrown when an application does not have the privilege to access this method. |