SecureElementSession Class

SecureElementSession Class

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

Represents a Secure Element sessions that is used to create channels and transmit commands to the Secure Element on the phone.


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

Public Class SecureElementSession _
	Implements IDisposable

The SecureElementSession type exposes the following members.

Public propertyAnswerToResetGets the Answer to Reset (ATR) response of the Secure Element.
Public propertyReaderGets the SecureElementReader object for the session.

Public methodDisposeReleases all resources used by the current instance of SecureElementSession.
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeFrees resources used by the SecureElementSession object. (Overrides Object.Finalize.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodOpenChannelOpens a logical channel with the Secure Element, using a specific applet on the Secure Element.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)


If you use this API in your app, you must specify the following capabilities in the app manifest. Otherwise, your app might not work correctly or it might exit unexpectedly.


Windows Phone 8


Windows Phone 8

For more info, see App capabilities and hardware requirements for Windows Phone 8.

Important noteImportant Note:

To deploy an app that uses the ID_CAP_WALLET_SECUREELEMENT capability, you must request special permissions and have that permission applied to your developer account. For more info and assistance, contact Developer support.

Windows Phone OS

Supported in: 8.1, 8.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

© 2017 Microsoft