Delen via


UssdMessage.SetPayload(Byte[]) Method

Definition

Sets the raw payload of this UssdMessage.

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:
 virtual void SetPayload(Platform::Array <byte> ^ value) = SetPayload;
void SetPayload(winrt::array_view <byte> const& value);
public void SetPayload(byte[] value);
function setPayload(value)
Public Sub SetPayload (value As Byte())

Parameters

value

Byte[]

byte[]

The raw payload of this UssdMessage.

Windows requirements

App capabilities
cellularDeviceControl cellularDeviceIdentity

Remarks

When you set the raw payload for a UssdMessage, you must first set the DataCodingScheme property to the encoding scheme for the message. If you do not set the DataCodingScheme property, the default coding scheme is used.

If you use the default coding scheme, you can access the payload as text using the PayloadAsText property.

The maximum size of the raw payload is 160 bytes.

Applies to