Share via


ESimManager.TryCreateESimWatcher Method

Definition

Attempts to create a new instance of the ESimWatcher class.

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 to request special approval to use the custom capability Microsoft.eSIMManagement_8wekyb3d8bbwe. For more info, see Custom capabilities.

public:
 static ESimWatcher ^ TryCreateESimWatcher();
 static ESimWatcher TryCreateESimWatcher();
public static ESimWatcher TryCreateESimWatcher();
function tryCreateESimWatcher()
Public Shared Function TryCreateESimWatcher () As ESimWatcher

Returns

A new instance of the ESimWatcher class, or null if the caller's user security identifier (SID) is not authorized by the Windows service that handles eSIM-related operation requests.

Windows requirements

App capabilities
Microsoft.eSIMManagement_8wekyb3d8bbwe

Applies to