MobileBroadbandDeviceServiceCommandSession MobileBroadbandDeviceServiceCommandSession MobileBroadbandDeviceServiceCommandSession MobileBroadbandDeviceServiceCommandSession Class

Definition

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 only available to mobile operator apps and Windows Store apps given privileged access by mobile network operators.

If you want to use this API and publish your app to the Store, you will need special approval. For more information, see the Special and restricted capabilities section under App capability declarations.

public : sealed class MobileBroadbandDeviceServiceCommandSession : IMobileBroadbandDeviceServiceCommandSessionpublic sealed class MobileBroadbandDeviceServiceCommandSession : IMobileBroadbandDeviceServiceCommandSessionPublic NotInheritable Class MobileBroadbandDeviceServiceCommandSession Implements IMobileBroadbandDeviceServiceCommandSession// You can use this class in JavaScript.
Attributes
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)

Remarks

A MobileBroadbandDeviceServiceCommandSession instance is returned when the OpenCommandSession method is called on the MobileBroadbandDeviceService object.

Methods

CloseSession() CloseSession() CloseSession() CloseSession()

Closes the command session on a mobile broadband device service.

public : void CloseSession()public void CloseSession()Public Function CloseSession() As void// You can use this method in JavaScript.

SendQueryCommandAsync(UInt32, IBuffer) SendQueryCommandAsync(UInt32, IBuffer) SendQueryCommandAsync(UInt32, IBuffer) SendQueryCommandAsync(UInt32, IBuffer)

Starts an asynchronous operation on a mobile broadband device service to send a query command to the command session.

public : IAsyncOperation<MobileBroadbandDeviceServiceCommandResult> SendQueryCommandAsync(unsigned int commandId, IBuffer data)public IAsyncOperation<MobileBroadbandDeviceServiceCommandResult> SendQueryCommandAsync(UInt32 commandId, IBuffer data)Public Function SendQueryCommandAsync(commandId As UInt32, data As IBuffer) As IAsyncOperation( Of MobileBroadbandDeviceServiceCommandResult )// You can use this method in JavaScript.
Parameters
commandId
unsigned int UInt32 UInt32 UInt32

The command identifier for the query command to be executed.

data
IBuffer IBuffer IBuffer IBuffer

The data to be submitted as part of the command.

Returns

SendSetCommandAsync(UInt32, IBuffer) SendSetCommandAsync(UInt32, IBuffer) SendSetCommandAsync(UInt32, IBuffer) SendSetCommandAsync(UInt32, IBuffer)

Starts an asynchronous operation on a mobile broadband device service to send a set command to the command session.

public : IAsyncOperation<MobileBroadbandDeviceServiceCommandResult> SendSetCommandAsync(unsigned int commandId, IBuffer data)public IAsyncOperation<MobileBroadbandDeviceServiceCommandResult> SendSetCommandAsync(UInt32 commandId, IBuffer data)Public Function SendSetCommandAsync(commandId As UInt32, data As IBuffer) As IAsyncOperation( Of MobileBroadbandDeviceServiceCommandResult )// You can use this method in JavaScript.
Parameters
commandId
unsigned int UInt32 UInt32 UInt32

The command identifier for the set command to be executed.

data
IBuffer IBuffer IBuffer IBuffer

The data to be submitted as part of the command.

Returns