GattDeviceService.Close 方法

定義

釋放與 GattDeviceService 類別相關聯的資源。 這可讓其他應用程式存取 有問題的 GattDeviceService 資源。 在您叫用 Close 之後,請勿使用 GattDeviceService 物件;而是使用 FromIdAsync 方法具現化新的 GattDeviceService 物件。

針對 C++,請呼叫 Close。 針對 .NET 語言,這個 Close 方法會投影到 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

實作

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

Windows 需求

應用程式功能
bluetooth

適用於