SmsModemErrorCode SmsModemErrorCode SmsModemErrorCode SmsModemErrorCode SmsModemErrorCode Enum


Values that describe error codes from the SMS modem in an SmsSendMessageResult.

public : enum class SmsModemErrorCode
enum class winrt::Windows::Devices::Sms::SmsModemErrorCode : int32_t
public enum SmsModemErrorCode
Public Enum SmsModemErrorCode
var value = Windows.Devices.Sms.SmsModemErrorCode.deviceFailure;

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)
sms cellularMessaging


DeviceFailure DeviceFailure DeviceFailure DeviceFailure DeviceFailure 4

The device failed.

DeviceNotReady DeviceNotReady DeviceNotReady DeviceNotReady DeviceNotReady 7

The device was not ready to send SMS.

FixedDialingNumberRestricted FixedDialingNumberRestricted FixedDialingNumberRestricted FixedDialingNumberRestricted FixedDialingNumberRestricted 11

The device is restricted to a fixed dialing number list, and the number used was not in the list.

InvalidSmscAddress InvalidSmscAddress InvalidSmscAddress InvalidSmscAddress InvalidSmscAddress 9

The SMSC address was not valid.

MessageNotEncodedProperly MessageNotEncodedProperly MessageNotEncodedProperly MessageNotEncodedProperly MessageNotEncodedProperly 5

The message was not encoded properly.

MessageTooLarge MessageTooLarge MessageTooLarge MessageTooLarge MessageTooLarge 6

The message was too large.

MessagingNetworkError MessagingNetworkError MessagingNetworkError MessagingNetworkError MessagingNetworkError 1

A network error.

NetworkFailure NetworkFailure NetworkFailure NetworkFailure NetworkFailure 10

There was a network failure.

NetworkNotReady NetworkNotReady NetworkNotReady NetworkNotReady NetworkNotReady 8

The network was not ready to send SMS.

Other Other Other Other Other 0

An unknown error.

SmsOperationNotSupportedByDevice SmsOperationNotSupportedByDevice SmsOperationNotSupportedByDevice SmsOperationNotSupportedByDevice SmsOperationNotSupportedByDevice 2

SMS is not supported by the device.

SmsServiceNotSupportedByNetwork SmsServiceNotSupportedByNetwork SmsServiceNotSupportedByNetwork SmsServiceNotSupportedByNetwork SmsServiceNotSupportedByNetwork 3

SMS is not supported by the network.