Share via


PhoneSimState Enum

Definition

The current state of the SIM card for a cellular phone line.

public enum class PhoneSimState
/// [Windows.Foundation.Metadata.ContractVersion(Windows.ApplicationModel.Calls.CallsPhoneContract, 65536)]
enum class PhoneSimState
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.ApplicationModel.Calls.CallsPhoneContract), 65536)]
public enum PhoneSimState
var value = Windows.ApplicationModel.Calls.PhoneSimState.unknown
Public Enum PhoneSimState
Inheritance
PhoneSimState
Attributes

Windows requirements

Device family
Windows Mobile Extension SDK (introduced in 10.0.10240.0)
API contract
Windows.ApplicationModel.Calls.CallsPhoneContract (introduced in v1.0)
App capabilities
phoneCallHistory phoneCallHistorySystem

Fields

Name Value Description
Unknown 0

The SIM card state is unknown.

PinNotRequired 1

The SIM card does not require a PIN code.

PinUnlocked 2

The SIM card is unlocked, but requires a PIN code to unlock again if it becomes locked.

PinLocked 3

The SIM card is locked and requires a PIN code to unlock.

PukLocked 4

The SIM card is locked due to too many incorrect PIN entries, and requires a Personal Unlocking Key (PUK) to unlock.

NotInserted 5

There is no SIM card inserted into the phone.

Invalid 6

The SIM card is not valid.

Disabled 7

The SIM card is disabled.

Applies to