GattDescriptor クラス

定義

GATT 特性の記述子を表します。 GattDescriptor オブジェクトは、特定の特性の GATT 記述子を表し、GattCharacteristic オブジェクトの Descriptors プロパティから取得されます。

public ref class GattDescriptor sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class GattDescriptor final
/// [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 GattDescriptor final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public sealed class GattDescriptor
[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 GattDescriptor
Public NotInheritable Class GattDescriptor
継承
Object Platform::Object IInspectable GattDescriptor
属性

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 バージョン 追加された値
1703 15063 WriteValueWithResultAsync

プロパティ

AttributeHandle

GATT サーバー デバイスでこの属性を一意に識別するために使用される GATT 属性ハンドルを取得します。

ProtectionLevel

デバイスとの空中通信に必要な GATT セキュリティ オプションを取得または設定します。

Windows では、ペアリング プロセスの一環としてデバイスで可能な最大限のセキュリティがネゴシエートされ、低いレベルのセキュリティを指定しても、既存のセキュリティ レベルは低下しません。

Uuid

この GattDescriptor の GATT 記述子 UUID を取得します。

メソッド

ConvertShortIdToUuid(UInt16)

Bluetooth SIG で定義された短い ID を完全な GATT UUID に変換します。

重要

ConvertShortIdToUuid API は非推奨であり、今後のバージョンの Windows では使用できない可能性があります。 代わりに、 BluetoothUuidHelper.FromShortId を使用します

ReadValueAsync()

Windows によって管理される値キャッシュから記述子値の読み取りを実行します。

ReadValueAsync(BluetoothCacheMode)

Windows によって管理されている値キャッシュから、またはデバイスから直接、記述子値の読み取りを実行します。

WriteValueAsync(IBuffer)

Bluetooth LE デバイスへの記述子値の書き込みを実行します。

WriteValueWithResultAsync(IBuffer)

Bluetooth LE デバイスへの記述子値の書き込みを実行します。

適用対象