DevicePairingRequestedEventArgs 類別

定義

提供 PairingRequested 事件的資料。

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

Windows 需求

裝置系列
Windows 10 (已於 10.0.10586.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v2.0 引進)

備註

版本歷程記錄

Windows 版本 SDK 版本 新增值
1903 18362 AcceptWithPasswordCredential

屬性

DeviceInformation

取得與這個配對要求相關聯的 DeviceInformation 物件。

PairingKind

取得與此配對事件相關聯的配對類型。

Pin

取得與配對要求相關聯的針腳。

方法

Accept()

接受 PairingRequested 事件,並將裝置與應用程式配對。

Accept(String)

接受 PairingRequested 事件,並將裝置與應用程式配對。 需要針腳才能進行配對。

AcceptWithAddress(String)

提供 PairingRequested 事件的資料。

AcceptWithPasswordCredential(PasswordCredential)

接受 PairingRequested 事件,並將裝置與應用程式配對。 需要使用者名稱和密碼才能進行配對。

GetDeferral()

要求 Deferral 以支援非同步作業。

適用於