DevicePairingRequestedEventArgs.AcceptWithAddress(String) 方法

定义

接受具有地址 的 PairingRequested 事件,并将设备与应用程序配对。

public:
 virtual void AcceptWithAddress(Platform::String ^ address) = AcceptWithAddress;
void AcceptWithAddress(winrt::hstring const& address);
public void AcceptWithAddress(string address);
function acceptWithAddress(address)
Public Sub AcceptWithAddress (address As String)

参数

address
String

Platform::String

winrt::hstring

你的应用必须提供来自设备的地址。 这通常用于通过网络协议(例如 IPP 或 UPnP)进行定向发现,其中应用程序已知道设备的 IP/地址/URL。 如果希望配对完成,应调用 AcceptWithAddress 。 将地址作为参数传入。

Windows 要求

设备系列
Windows 11 Insider Preview (在 10.0.26100.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v19.0 中引入)

适用于