DevicePairingRequestedEventArgs Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides data for the PairingRequested event.
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
- Inheritance
- Attributes
Windows requirements
Device family |
Windows 10 (introduced in 10.0.10586.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v2.0)
|
Remarks
Version history
Windows version | SDK version | Value added |
---|---|---|
1903 | 18362 | AcceptWithPasswordCredential |
Properties
DeviceInformation |
Gets the DeviceInformation object associated with this pairing request. |
PairingKind |
Gets the kind of pairing associated with this pairing event. |
Pin |
Gets the pin associated with a pairing request. |
Methods
Accept() |
Accepts a PairingRequested event and pairs the device with the application. |
Accept(String) |
Accepts a PairingRequested event and pairs the device with the application. Requires a pin for pairing purposes. |
AcceptWithAddress(String) |
Accepts a PairingRequested event with an address, and pairs the device with the application. |
AcceptWithPasswordCredential(PasswordCredential) |
Accepts a PairingRequested event and pairs the device with the application. Requires a user name and password for pairing purposes. |
GetDeferral() |
Requests a Deferral to support asynchronous operations. |
Applies to
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기