Share via


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 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 MobileBroadbandDeviceServiceDataSession sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class MobileBroadbandDeviceServiceDataSession final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class MobileBroadbandDeviceServiceDataSession
Public NotInheritable Class MobileBroadbandDeviceServiceDataSession
Inheritance
Object Platform::Object IInspectable MobileBroadbandDeviceServiceDataSession
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 MobileBroadbandDeviceServiceDataSession instance is returned when the OpenDataSession method is called on the MobileBroadbandDeviceService object.

Methods

CloseSession()

Closes the data session on a mobile broadband device service.

WriteDataAsync(IBuffer)

Starts an asynchronous operation on a mobile broadband device service to write data to the data session.

Events

DataReceived

An event that indicates that data was received on the MobileBroadbandDeviceServiceDataSession object after the WriteDataAsync method was called.

Applies to

See also