Class DevicePolicyManager
Definition
- Namespace:
- Tizen.Security.DevicePolicyManager
- Assembly:
- Tizen.Security.DevicePolicyManager.dll
The DevicePolicyManager provides the methods to create handle for device policy.
[Obsolete("Deprecated since API level 11.")]
public class DevicePolicyManager : IDisposable
- Inheritance
-
objectDevicePolicyManager
- Implements
-
System.IDisposable
Constructors
View SourceDevicePolicyManager()
A constructor of DevicePolicyManager that creates handle.
Declaration
[Obsolete("Deprecated since API level 11.")]
public DevicePolicyManager()
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | Thrown when connection refused or a memory error occurred. |
Methods
View SourceDispose()
Releases any unmanaged resources used by this object.
Declaration
[Obsolete("Deprecated since API level 11.")]
public void Dispose()
Dispose(bool)
Releases any unmanaged resources used by this object. Can also dispose any other disposable objects.
Declaration
[Obsolete("Deprecated since API level 11.")]
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. |
~DevicePolicyManager()
A Destructor of DevicePolicyManager.
Declaration
[Obsolete("Deprecated since API level 11.")]
protected ~DevicePolicyManager()
GetPolicy<T>()
Method to creates an instance of Device Policy.
Declaration
[Obsolete("Deprecated since API level 11.")]
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 |
---|---|
System.InvalidOperationException | Thrown when failed to create instance of the policy. |
Implements
System.IDisposable