Dela via


MobileBroadbandPin Class

Definition

Contains the properties and methods associated with a mobile broadband PIN.

Note

This functionality is available only to mobile operator apps and UWP apps given privileged access by mobile network operators.

If you want to use this API and publish your app to the Microsoft Store, then you'll need special approval. For more information, see the Restricted capabilities section in the App capability declarations topic.

public ref class MobileBroadbandPin sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class MobileBroadbandPin final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class MobileBroadbandPin
Public NotInheritable Class MobileBroadbandPin
Inheritance
Object Platform::Object IInspectable MobileBroadbandPin
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)
App capabilities
cellularDeviceControl cellularDeviceIdentity

Remarks

The usage and content of a Universal Integrated Circuit Card (UICC), normally called a SIM Card, can be protected by use of a code called the Personal Identification Number (PIN). PIN1 is defined to control normal use of the phone or data modem. PIN2 can be set to allow the use of special functions such as limiting outbound calls to a list of numbers.

A MobileBroadbandPin object is returned by the GetPin method on the MobileBroadbandPinManager .

Properties

AttemptsRemaining

Gets the number of attempts remaining before the mobile broadband PIN is blocked.

Enabled

Gets a boolean value that indicates if the mobile broadband PIN is enabled.

Format

Gets the format for a mobile broadband PIN.

LockState

Gets the lock state for a mobile broadband PIN.

MaxLength

Gets the maximum length, in bytes, of the mobile broadband PIN.

MinLength

Gets the minimum length, in bytes, of the mobile broadband PIN.

Type

Gets the PIN type for a mobile broadband PIN.

Methods

ChangeAsync(String, String)

Starts an asynchronous operation to change an already-enabled mobile broadband PIN.

DisableAsync(String)

Starts an asynchronous operation to disable a previously-enabled mobile broadband PIN.

EnableAsync(String)

Starts an asynchronous operation to enable a previously-disabled mobile broadband PIN.

EnterAsync(String)

Starts an asynchronous operation to get the current mobile broadband PIN from the user.

UnblockAsync(String, String)

Starts an asynchronous operation to unblock a previously-blocked mobile broadband PIN using a PIN unlock key (PUK).

Applies to

See also