Class TelephonyPolicy
Definition
- Namespace:
- Tizen.Security.Device
Policy Manager
- Assembly:
- Tizen.Security.DevicePolicyManager.dll
The TelephonyPolicy provides methods to manage telephony policies.
public class TelephonyPolicy : DevicePolicy, IDisposable
- Inheritance
- Implements
-
System.
IDisposable
Remarks
The TelephonyPolicy is created by Get
Fields
View SourceMessagingPolicyName
The Text messaging policy name. This represents Is
Declaration
public static readonly string MessagingPolicyName
Field Value
Type | Description |
---|---|
string |
Remarks
This is used in Policy
Methods
View SourceDispose()
Releases any unmanaged resources used by this object.
Declaration
public void Dispose()
Remarks
The TelephonyPolicy 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 TelephonyPolicy is created by Get
~TelephonyPolicy()
A Destructor of TelephonyPolicy.
Declaration
protected ~TelephonyPolicy()
Remarks
The TelephonyPolicy is created by Get
IsMessagingAllowed(string)
Checks whether the text messaging is allowed or not.
Declaration
public bool IsMessagingAllowed(string simId)
Parameters
Type | Name | Description |
---|---|---|
string | simId | SIM identifier |
Returns
Type | Description |
---|---|
bool | true if the messaging is allowed, false otherwise. |
Remarks
The TelephonyPolicy is created by Get
Exceptions
Type | Condition |
---|---|
System. |
Thrown when failed because of invalid parameter. |
System. |
Thrown when failed because of timeout. |
Events
View SourceMessagingPolicyChanged
The MessagingPolicyChanged event is raised when the messaging policy is changed.
Declaration
public event EventHandler<PolicyChangedEventArgs> MessagingPolicyChanged
Event Type
Type | Description |
---|---|
System. |
Remarks
This event will be removed automatically when TelephonyPolicy is destroyed.