RfcommServiceProvider.CreateAsync(RfcommServiceId) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
|