Class DevicePolicyManager
Definition
- Namespace:
- Tizen.Security.DevicePolicyManager
- Assembly:
- Tizen.Security.DevicePolicyManager.dll
- API Level:
- 6
The DevicePolicyManager provides the methods to create handle for device policy.
public class DevicePolicyManager : IDisposable
- Inheritance
-
DevicePolicyManager
- Implements
Constructors
View SourceDevicePolicyManager()
A constructor of DevicePolicyManager that creates handle.
Declaration
public DevicePolicyManager()
Exceptions
Type | Condition |
---|---|
InvalidOperationException | Thrown when connection refused or a memory error occurred. |
API Level: 6
Methods
View SourceDispose()
Releases any unmanaged resources used by this object.
Declaration
public void Dispose()
Dispose(Boolean)
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 |
---|---|---|
Boolean | disposing | If true, disposes any disposable objects. If false, does not dispose disposable objects. |
Finalize()
A Destructor of DevicePolicyManager.
Declaration
protected void Finalize()
GetPolicy<T>()
Method to creates an instance of Device Policy.
Declaration
public T GetPolicy<T>()
where T : DevicePolicy
Returns
Type | Description |
---|---|
T | An instance of policy. |
Type Parameters
Name | Description |
---|---|
T | The generic type to create. |
Exceptions
Type | Condition |
---|---|
InvalidOperationException | Thrown when failed to create instance of the policy. |