Class StoragePolicy
Definition
- Namespace:
- Tizen.Security.Device
Policy Manager
- Assembly:
- Tizen.Security.DevicePolicyManager.dll
The StoragePolicy provides methods to manage storage policies.
public class StoragePolicy : DevicePolicy, IDisposable
- Inheritance
- Implements
-
System.
IDisposable
Remarks
The StoragePolicy is created by Get
Fields
View SourceExternalStoragePolicyName
The External storage policy name. This represents Is
Declaration
public static readonly string ExternalStoragePolicyName
Field Value
Type | Description |
---|---|
string |
Remarks
This is used in Policy
Properties
View SourceIsExternalStorageAllowed
Gets whether the use of external storage is allowed or not.
Declaration
public bool IsExternalStorageAllowed { get; }
Property Value
Type | Description |
---|---|
bool | true if the use of external storage is allowed, false otherwise. The default value is true. |
Remarks
The StoragePolicy is created by Get
Methods
View SourceDispose()
Releases any unmanaged resources used by this object.
Declaration
public void Dispose()
Remarks
The StoragePolicy is created by Get
Dispose(bool)
Releases any unmanaged resources used by this object. Can also dispose any other disposable objects.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
bool | disposing | If true, disposes any disposable objects. If false, does not dispose disposable objects. |
Remarks
The StoragePolicy is created by Get
~StoragePolicy()
A Destructor of StoragePolicy.
Declaration
protected ~StoragePolicy()
Remarks
The StoragePolicy is created by Get
Events
View SourceExternalStoragePolicyChanged
The ExternalStoragePolicyChanged event is raised when the external storage policy is changed.
Declaration
public event EventHandler<PolicyChangedEventArgs> ExternalStoragePolicyChanged
Event Type
Type | Description |
---|---|
System. |
Remarks
This event will be removed automatically when StoragePolicy is destroyed.