Supports the operation of a mobile broadband SMS device.
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.
- StaticAttribute(Windows.Devices.Sms.ISmsDeviceStatics, NTDDI_WIN8)
The SmsDevice class has these types of members:
The SmsDevice class has these events.
|SmsDeviceStatusChanged||Sets an event handler to be called when the status of the SMS device changes.|
|SmsMessageReceived||Sets an event handler to be called when the device receives a new text message.|
The SmsDevice class has these methods. With C#, Visual Basic, and C++, it also inherits methods from the Object class.
|CalculateLength||Estimates the transmitted message length of the specified text message. The estimate can be useful to clients who want to give an indication of how many messages will be sent on the network to carry the text of the full message.|
|FromIdAsync||Creates an instance of SmsDevice for the device that received the SMS message.|
|GetDefaultAsync||Creates an instance of an SmsDevice object associated with the default SMS device. Because the device might be busy, the operation executes asynchronously. The asynchronous operation object returns immediately.|
|GetDeviceSelector||Retrieves the class selection string that can be used to enumerate SMS devices.|
|SendMessageAsync||Asynchronously sends a message using the SMS device. The method is asynchronous because the send operation might not occur instantaneously. The message operation object is returned immediately.|
The SmsDevice class has these properties.
|Read-only||Returns the phone number associated with the SMS device. The phone number can be used to associate incoming messages with the account and possibly an external storage mechanism such as an account inbox.|
|Read-only||Returns the cellular class of the SMS device. The class can be used to determine which encodings are appropriate or which device limitations are in effect.|
|Read-only||Returns the SMS device's status, which indicates whether the device is ready, or not. It also indcates what type of problem exists if the device is not ready.|
|Read-only||Accesses the on-device message store. The store holds messages until a client can retrieve them. On some devices, for example, the store may correspond to the SIM storage for SMS messages.|
Minimum supported client
|Windows 8 [Windows Store apps, desktop apps]|
Minimum supported server
|Windows Server 2012 [Windows Store apps, desktop apps]|
Build date: 12/4/2012