Share via


GattDeviceService.OpenAsync(GattSharingMode) Method

Definition

Opens the GATT device service with the specified sharingMode.

public:
 virtual IAsyncOperation<GattOpenStatus> ^ OpenAsync(GattSharingMode sharingMode) = OpenAsync;
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<GattOpenStatus> OpenAsync(GattSharingMode const& sharingMode);
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<GattOpenStatus> OpenAsync(GattSharingMode sharingMode);
function openAsync(sharingMode)
Public Function OpenAsync (sharingMode As GattSharingMode) As IAsyncOperation(Of GattOpenStatus)

Parameters

sharingMode
GattSharingMode

The sharing mode.

Returns

An asynchronous operation that completes with a GattOpenStatus object.

Attributes

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)
App capabilities
bluetooth

Applies to