MobileBroadbandDeviceServiceCommandSession Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a device service command session which allows the caller to submit predefined commands to the modem on a mobile broadband device service.
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 ref class MobileBroadbandDeviceServiceCommandSession sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class MobileBroadbandDeviceServiceCommandSession final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class MobileBroadbandDeviceServiceCommandSession
Public NotInheritable Class MobileBroadbandDeviceServiceCommandSession
- Inheritance
- Attributes
Windows requirements
Device family |
Windows 10 (introduced in 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v1.0)
|
App capabilities |
cellularDeviceControl
cellularDeviceIdentity
|
Remarks
A MobileBroadbandDeviceServiceCommandSession instance is returned when the OpenCommandSession method is called on the MobileBroadbandDeviceService object.
Methods
CloseSession() |
Closes the command session on a mobile broadband device service. |
SendQueryCommandAsync(UInt32, IBuffer) |
Starts an asynchronous operation on a mobile broadband device service to send a query command to the command session. |
SendSetCommandAsync(UInt32, IBuffer) |
Starts an asynchronous operation on a mobile broadband device service to send a set command to the command session. |
Events
CommandReceived |
Raised when an unsolicited event is received from a mobile broadband device on the MobileBroadbandDeviceServiceCommandSession object after the session is opened. 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. |