Share via


ESimProfile.SetNicknameAsync(String) Method

Definition

Asynchronously sets the nickname of the eSIM profile.

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:
 virtual IAsyncOperation<ESimOperationResult ^> ^ SetNicknameAsync(Platform::String ^ newNickname) = SetNicknameAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<ESimOperationResult> SetNicknameAsync(winrt::hstring const& newNickname);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<ESimOperationResult> SetNicknameAsync(string newNickname);
function setNicknameAsync(newNickname)
Public Function SetNicknameAsync (newNickname As String) As IAsyncOperation(Of ESimOperationResult)

Parameters

newNickname
String

Platform::String

winrt::hstring

The nickname to set.

Returns

An asynchronous nickname set operation. On successful completion, contains an ESimOperationResult object representing the result of the nickname set operation.

Attributes

Windows requirements

App capabilities
Microsoft.eSIMManagement_8wekyb3d8bbwe

Applies to