RfcommServiceProvider.CreateAsync | createAsync method

[This documentation is preliminary and is subject to change.]

Gets a RfcommServiceProvider object from a DeviceInformation Id for a RFCOMM service instance.

Syntax


Windows.Devices.Bluetooth.Rfcomm.RfcommServiceProvider.createAsync(serviceId).done( /* Your success and error handlers */ );

Parameters

serviceId

Type: RfcommServiceId

The RfcommServiceId to be hosted locally.

Return value

Type: IAsyncOperation<RfcommServiceProvider>

The RfcommServiceProvider object that represents the local RFCOMM service instance.

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

None supported

Minimum supported phone

Windows Phone (code-named "Blue") [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Devices.Bluetooth.Rfcomm
Windows::Devices::Bluetooth::Rfcomm [C++]

Metadata

Windows.winmd

See also

RfcommServiceProvider

 

 

Show: