Delen via


GattDeviceService.Close Method

Definition

Releases the resources associated with the GattDeviceService class. This allows other apps to access the resources of the GattDeviceService in question. Don't use a GattDeviceService object after you've invoked Close on it; instead, instantiate a new GattDeviceService object by using the FromIdAsync method.

For C++, call Close. For .NET languages, this Close method is projected into Dispose.

public:
 virtual void Close() = Close;
void Close();
// This member is not implemented in C#
function close()
' This member is not implemented in VB.NET

Implements

M:Windows.Foundation.IClosable.Close M:System.IDisposable.Close

Windows requirements

App capabilities
bluetooth

Applies to