BluetoothLEPreferredConnectionParameters 類別

定義

代表藍牙 LE 慣用連線參數。

如需連線參數和 PHY 的詳細資訊,請參閱 藍牙核心規格

public ref class BluetoothLEPreferredConnectionParameters sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 851968)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class BluetoothLEPreferredConnectionParameters final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 851968)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class BluetoothLEPreferredConnectionParameters
Public NotInheritable Class BluetoothLEPreferredConnectionParameters
繼承
Object Platform::Object IInspectable BluetoothLEPreferredConnectionParameters
屬性

Windows 需求

裝置系列
Windows 11 (已於 10.0.22000.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v14.0 引進)
應用程式功能
bluetooth

屬性

Balanced

靜態屬性,可取得一組平衡的連接參數,提供輸送量與電源使用量之間的平衡。

ConnectionLatency

取得連線延遲。 連線延遲定義于線上活動中,範圍從0x0000到0x01F3。

LinkTimeout

取得連接連結監督逾時。 連線連結監督逾時是以 10 毫秒的增量定義,範圍從0x000A到0x0C80。 時間 (毫秒) = LinkTimeout * 10 毫秒。

MaxConnectionInterval

取得最大連線不限值。 連線無值定義為 1.25 毫秒遞增,範圍從0x0006到0x0C80。 時間 (毫秒) = 間隔 * 1.25 毫秒。

MinConnectionInterval

取得無限價的最小連接。 連線無值定義為 1.25 毫秒遞增,範圍從0x0006到0x0C80。 時間 (毫秒) = 間隔 * 1.25 毫秒。

PowerOptimized

靜態屬性,可取得更有效率的連接參數集。 針對耗電量優化,代價為輸送量。

注意

也允許更多同時連線到其他藍牙裝置。

ThroughputOptimized

靜態屬性,可取得更積極的連線參數集,以犧牲電力使用量,針對更快的輸送量進行優化。

注意

同時減少可對其他藍牙裝置進行的同時連線數目。

適用於