RfcommDeviceService 클래스

정의

Bluetooth BR 디바이스에서 서비스의 instance 나타냅니다.

public ref class RfcommDeviceService sealed : IClosable
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class RfcommDeviceService final : IClosable
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class RfcommDeviceService final : IClosable
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class RfcommDeviceService : System.IDisposable
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class RfcommDeviceService : System.IDisposable
Public NotInheritable Class RfcommDeviceService
Implements IDisposable
상속
Object Platform::Object IInspectable RfcommDeviceService
특성
구현

Windows 요구 사항

디바이스 패밀리
Windows 10 (10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox에서 도입되었습니다.)
API contract
Windows.Foundation.UniversalApiContract (v1.0에서 도입되었습니다.)
앱 기능
bluetooth

설명

버전 기록

Windows 버전 SDK 버전 추가된 값
1607 14393 DeviceAccessInformation
1607 14393 GetDeviceSelectorForBluetoothDevice(BluetoothDevice)
1607 14393 GetDeviceSelectorForBluetoothDevice(BluetoothDevice,BluetoothCacheMode)
1607 14393 GetDeviceSelectorForBluetoothDeviceAndServiceId(BluetoothDevice,RfcommServiceId)
1607 14393 GetDeviceSelectorForBluetoothDeviceAndServiceId(BluetoothDevice,RfcommServiceId,BluetoothCacheMode)
1607 14393 RequestAccessAsync

속성

ConnectionHostName

원격 디바이스에 연결하는 데 사용되는 RFCOMM 서비스 instance 연결 호스트 이름을 가져옵니다.

ConnectionServiceName

원격 디바이스에 연결하는 데 사용되는 RFCOMM 서비스 instance 연결 서비스 이름을 가져옵니다.

Device

현재 RfcommDeviceService 개체와 연결된 디바이스를 설명하는 BluetoothDevice 개체를 가져옵니다.

DeviceAccessInformation

디바이스 액세스 정보입니다. 액세스를 검사 모니터링하는 데 사용됩니다.

MaxProtectionLevel

이 RFCOMM 서비스 instance 지원하는 최대 SocketProtectionLevel을 가져옵니다.

ProtectionLevel

RFCOMM 서비스 instance 현재 SocketProtectionLevel을 가져옵니다.

ServiceId

이 RFCOMM 서비스 instance RfcommServiceId를 가져옵니다.

메서드

Close()

RFCOMM 디바이스를 닫습니다.

Dispose()

관리되지 않는 리소스의 확보, 해제 또는 다시 설정과 관련된 애플리케이션 정의 작업을 수행합니다.

FromIdAsync(String)

RFCOMM 서비스 instance DeviceInformation ID에서 RfcommDeviceService 개체를 가져옵니다.

GetDeviceSelector(RfcommServiceId)

RFCOMM 서비스의 인스턴스를 식별하기 위한 AQS(고급 쿼리 구문) 문자열을 가져옵니다. 이 문자열은 CreateWatcher 메서드에 전달됩니다.

GetDeviceSelectorForBluetoothDevice(BluetoothDevice)

원격 Bluetooth 디바이스에서 모든 Rfcomm 서비스의 인스턴스를 식별하기 위한 AQS(고급 쿼리 구문) 문자열을 가져옵니다.

GetDeviceSelectorForBluetoothDevice(BluetoothDevice, BluetoothCacheMode)

원격 Bluetooth 디바이스에서 모든 Rfcomm 서비스의 캐시된 인스턴스를 식별하기 위한 AQS(고급 쿼리 구문) 문자열을 가져옵니다.

GetDeviceSelectorForBluetoothDeviceAndServiceId(BluetoothDevice, RfcommServiceId)

원격 Bluetooth 디바이스에서 Rfcomm 서비스 인스턴스를 식별하기 위한 AQS(고급 쿼리 구문) 문자열을 가져옵니다.

GetDeviceSelectorForBluetoothDeviceAndServiceId(BluetoothDevice, RfcommServiceId, BluetoothCacheMode)

원격 Bluetooth 디바이스에서 Rfcomm 서비스 인스턴스를 식별하기 위한 AQS(고급 쿼리 구문) 문자열을 가져옵니다.

GetSdpRawAttributesAsync()

RFCOMM 서비스 instance 캐시된 SDP 특성을 가져옵니다.

GetSdpRawAttributesAsync(BluetoothCacheMode)

RFCOMM 서비스 instance SDP 특성을 가져옵니다.

RequestAccessAsync()

Rfcomm 서비스에 대한 명시적 액세스를 요청하는 데 사용됩니다. 이렇게 하면 디바이스 동의가 호출되고 UI 스레드에서 호출되어야 합니다. 기본적으로 페어링되지 않은 디바이스는 동의가 필요하지 않지만 페어링된 디바이스는 동의가 필요하지 않습니다. FromIdAsync 는 페어링된 디바이스에 대해 호출된 경우에만 동의 프롬프트를 표시합니다. RequestAccessAsync를 사용하면 나중에 디바이스가 디바이스의 다른 사용을 통해 페어링될 수 있는 경우 앱에서 액세스 요청을 명시적으로 만들 수 있습니다.

적용 대상