Windows Dev Center

SmsDeviceMessageStore class

Provides access to the messages stored on an SMS Device and information about the message store.

Note  This functionality is only available to mobile operator apps and Windows Store apps given privileged access by mobile network operators, mobile broadband adapter IHV, or OEM. For more information, see Mobile Broadband: Windows Store device apps.

Note  Note that this class and its methods are supported for the maintenance of legacy desktop apps that used it in earlier versions of Windows; and if you do use this class, you must specify the Windows.Devices.Sms.LegacySmsApiContract in your app's manifest. Do not use this class if you are developing new apps for Windows 10. Instead, use the members of this namespace that do not require the Windows.Devices.Sms.LegacySmsApiContract.

Syntax


public sealed class SmsDeviceMessageStore

Attributes

[Deprecated()]
[DualApiPartition()]
[Version(0x06020000)]

Members

The SmsDeviceMessageStore class has these types of members:

Methods

The SmsDeviceMessageStore class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.

MethodDescription
DeleteMessageAsync Deletes the message with the specified ID. Because the device might be busy, the operation executes asynchronously. The asynchronous operation object returns immediately.
DeleteMessagesAsync Deletes the messages to which the filter applies. The filter can be used to delete all messages, or only messages that are read, unread, sent, or in a draft state. Because the operation might not be instantaneous, it executes asynchronously. The asynchronous operation object returns immediately.
GetMessageAsync Retrieves the message with the specified ID. The device might be busy, so the method executes asynchronously. The asynchronous operation object returns immediately.
GetMessagesAsync Retrieves a list of messages that match the conditions specified in a filter. The messages can be filtered as read, unread, sent, or in the draft state.

 

Properties

The SmsDeviceMessageStore class has these properties.

PropertyAccess typeDescription

MaxMessages

Read-onlyIndicates the maximum number of messages that can be stored in the device store. The client can use this value to determine how to maintain enough space in the device store to receive new messages from the network.

 

Requirements (device family)

Device family

Desktop

API contract

Windows.Devices.Sms.LegacySmsApiContract, introduced version 1.0

Namespace

Windows.Devices.Sms
Windows::Devices::Sms [C++]

Metadata

Windows.Devices.Sms.LegacySmsApiContract.winmd

Capabilities

sms

Requirements (operating system)

Minimum supported client

Windows 8 [Windows Store apps, desktop apps]

Minimum supported server

Windows Server 2012 [Windows Store apps, desktop apps]

Minimum supported phone

None supported

Namespace

Windows.Devices.Sms
Windows::Devices::Sms [C++]

Metadata

Windows.winmd

Capabilities

sms

See also

Object

 

 

Show:
© 2015 Microsoft