SecureElementReader.RegisterSecureElementItemAsync Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Registers an ISecureElementItem with the Secure Element.

Namespace:  Microsoft.Phone.SecureElement
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)

Syntax

Public Sub RegisterSecureElementItemAsync ( _
    item As ISecureElementItem, _
    serviceId As Byte() _
)
public void RegisterSecureElementItemAsync(
    ISecureElementItem item,
    byte[] serviceId
)

Parameters

  • serviceId
    Type: array<System..::.Byte>[]()[]
    The service ID used by provisioning.

Exceptions

Exception Condition
ArgumentNullException

Item is not a WalletItem.

InvalidOperationException

Item is not saved in the wallet.

-or-

No Secure Element is present on the phone.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0

See Also

Reference

SecureElementReader Class

Microsoft.Phone.SecureElement Namespace