Share via


UssdMessage(String) Constructor

Definition

Creates a new instance of a UssdMessage and encodes the supplied string into the message payload.

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:
 UssdMessage(Platform::String ^ messageText);
 UssdMessage(winrt::hstring const& messageText);
public UssdMessage(string messageText);
function UssdMessage(messageText)
Public Sub New (messageText As String)

Parameters

messageText
String

Platform::String

winrt::hstring

The payload for the UssdMessage.

Windows requirements

App capabilities
cellularDeviceControl cellularDeviceIdentity

Remarks

The default UssdMessage constructor assigns the default DataCodingScheme value and encodes the string supplied to the constructor into the message payload.

Applies to