Dela via


UssdMessage.PayloadAsText Property

Definition

Gets or sets the payload of this UssdMessage as text.

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:
 property Platform::String ^ PayloadAsText { Platform::String ^ get(); void set(Platform::String ^ value); };
winrt::hstring PayloadAsText();

void PayloadAsText(winrt::hstring value);
public string PayloadAsText { get; set; }
var string = ussdMessage.payloadAsText;
ussdMessage.payloadAsText = string;
Public Property PayloadAsText As String

Property Value

String

Platform::String

winrt::hstring

The payload of this UssdMessage as text.

Windows requirements

App capabilities
cellularDeviceControl cellularDeviceIdentity

Remarks

The PayloadAsText property can be used with the default DataCodingScheme value, which supports only ASCII characters. The maximum length of a message is using the default data-coding scheme is 182 characters.

Applies to