GattDeviceService.Close 메서드

정의

GattDeviceService 클래스와 연결된 리소스를 해제합니다. 이렇게 하면 다른 앱이 해당 GattDeviceService 의 리소스에 액세스할 수 있습니다. 닫기를 호출한 후에는 GattDeviceService 개체를 사용하지 마세요. 대신 FromIdAsync 메서드를 사용하여 새 GattDeviceService 개체를 인스턴스화합니다.

C++의 경우 닫기를 호출합니다. .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

적용 대상