GattDeviceService.Close 方法

定义

释放与 GattDeviceService 类关联的资源。 这允许其他应用访问相关 GattDeviceService 的资源。 调用 GattDeviceService 对象后,请勿使用 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

适用于