RfcommServiceProvider.CreateAsync(RfcommServiceId) Method

Definition

Gets a RfcommServiceProvider object from a RfcommServiceId for an RFCOMM service instance.

public:
 static IAsyncOperation<RfcommServiceProvider ^> ^ CreateAsync(RfcommServiceId ^ serviceId);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<RfcommServiceProvider> CreateAsync(RfcommServiceId const& serviceId);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<RfcommServiceProvider> CreateAsync(RfcommServiceId serviceId);
function createAsync(serviceId)
Public Shared Function CreateAsync (serviceId As RfcommServiceId) As IAsyncOperation(Of RfcommServiceProvider)

Parameters

serviceId
RfcommServiceId

The RfcommServiceId to be hosted locally.

Returns

The RfcommServiceProvider object that represents the local RFCOMM service instance.

Attributes

Windows requirements

App capabilities
bluetooth

Applies to