MobileBroadbandDeviceServiceDataSession
MobileBroadbandDeviceServiceDataSession
MobileBroadbandDeviceServiceDataSession
MobileBroadbandDeviceServiceDataSession
Class
Definition
Represents a device service data session which allows the caller to write data 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 MobileBroadbandDeviceServiceDataSession : IMobileBroadbandDeviceServiceDataSessionpublic sealed class MobileBroadbandDeviceServiceDataSession : IMobileBroadbandDeviceServiceDataSessionPublic NotInheritable Class MobileBroadbandDeviceServiceDataSession Implements IMobileBroadbandDeviceServiceDataSession// You can use this class in JavaScript.
- Attributes
| 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 MobileBroadbandDeviceServiceDataSession instance is returned when the OpenDataSession method is called on the MobileBroadbandDeviceService object.
Methods
CloseSession() CloseSession() CloseSession() CloseSession()
Closes the data 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.
WriteDataAsync(IBuffer) WriteDataAsync(IBuffer) WriteDataAsync(IBuffer) WriteDataAsync(IBuffer)
Starts an asynchronous operation on a mobile broadband device service to write data to the data session.
public : IAsyncAction WriteDataAsync(IBuffer value)public IAsyncAction WriteDataAsync(IBuffer value)Public Function WriteDataAsync(value As IBuffer) As IAsyncAction// You can use this method in JavaScript.
An asynchronous operation that returns the result of the write operation.
- See Also
Events
DataReceived DataReceived DataReceived DataReceived
An event that indicates that data was received on the MobileBroadbandDeviceServiceDataSession object after the WriteDataAsync method was called.
public : event TypedEventHandler DataReceived<MobileBroadbandDeviceServiceDataSession, MobileBroadbandDeviceServiceDataReceivedEventArgs>public event TypedEventHandler DataReceived<MobileBroadbandDeviceServiceDataSession, MobileBroadbandDeviceServiceDataReceivedEventArgs>Public Event DataReceived<MobileBroadbandDeviceServiceDataSession, MobileBroadbandDeviceServiceDataReceivedEventArgs>// You can use this event in JavaScript.
- See Also