次の方法で共有


DevicePairingRequestedEventArgs.AcceptWithAddress(String) メソッド

定義

アドレスを持つ PairRequested イベントを受け入れ、デバイスとアプリケーションをペアリングします。

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

アプリでデバイスのアドレスを指定する必要があります。 これは通常、アプリケーションがデバイスの IP/アドレス/URL を既に認識している IPP や UPnP などのネットワーク プロトコルを介したダイレクト検出に使用されます。 ペアリングを完了する場合は、 AcceptWithAddress を呼び出す必要があります。 パラメーターとしてアドレスを渡します。

Windows の要件

デバイス ファミリ
Windows 11 Insider Preview (10.0.26100.0 で導入)
API contract
Windows.Foundation.UniversalApiContract (v19.0 で導入)

適用対象