Class TelephonyPolicy
Definition
- Namespace:
- Tizen.Security.DevicePolicyManager
- Assembly:
- Tizen.Security.DevicePolicyManager.dll
- API Level:
- 6
The TelephonyPolicy provides methods to manage telephony policies.
C#Copypublic class TelephonyPolicy : DevicePolicy, IDisposable
- Inheritance
- Implements
-
System.IDisposable
Remarks
The TelephonyPolicy is created by GetPolicy<T>(). and the DevicePolicyManager instance must exists when using the TelephonyPolicy.
Fields
MessagingPolicyName
The Text messaging policy name. This represents IsMessagingAllowed(String).
Declaration
C#Copypublic static readonly string MessagingPolicyName
Field Value
Type | Description |
---|---|
System.String |
Remarks
This is used in PolicyName.
API Level: 6
Methods
Declaration
C#Copypublic void Dispose()
Dispose(Boolean)
Releases any unmanaged resources used by this object. Can also dispose any other disposable objects.
Declaration
C#Copyprotected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
Boolean | disposing | If true, disposes any disposable objects. If false, does not dispose disposable objects. |
Declaration
C#Copyprotected void Finalize()
Declaration
C#Copypublic bool IsMessagingAllowed(string simId)
Parameters
Type | Name | Description |
---|---|---|
System.String | simId | SIM identifier |
Returns
Type | Description |
---|---|
Boolean | true if the messaging is allowed, false otherwise. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | Thrown when failed because of invalid parameter. |
System.TimeoutException | Thrown when failed because of timeout. |
API Level: 6
Events
MessagingPolicyChanged
The MessagingPolicyChanged event is raised when the messaging policy is changed.
Declaration
C#Copypublic event EventHandler<PolicyChangedEventArgs> MessagingPolicyChanged
Event Type
Type | Description |
---|---|
System.EventHandler<PolicyChangedEventArgs> |
Remarks
This event will be removed automatically when TelephonyPolicy is destroyed.