WiFiDirectService.ConnectAsync Method
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.
Overloads
ConnectAsync() |
Initiates the establishment of a service session with the Wi-Fi Direct Service represented by this instance. |
ConnectAsync(String) |
Initiates the establishment of a service session with the Wi-Fi Direct Service represented by this instance, using a PIN to configure the session. |
ConnectAsync()
Initiates the establishment of a service session with the Wi-Fi Direct Service represented by this instance.
public:
virtual IAsyncOperation<WiFiDirectServiceSession ^> ^ ConnectAsync() = ConnectAsync;
/// [Windows.Foundation.Metadata.Overload("ConnectAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<WiFiDirectServiceSession> ConnectAsync();
[Windows.Foundation.Metadata.Overload("ConnectAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<WiFiDirectServiceSession> ConnectAsync();
function connectAsync()
Public Function ConnectAsync () As IAsyncOperation(Of WiFiDirectServiceSession)
Returns
An asynchronous connection operation. When successfully completed, returns an object that represents the session that has been established.
- Attributes
See also
Applies to
ConnectAsync(String)
Initiates the establishment of a service session with the Wi-Fi Direct Service represented by this instance, using a PIN to configure the session.
public:
virtual IAsyncOperation<WiFiDirectServiceSession ^> ^ ConnectAsync(Platform::String ^ pin) = ConnectAsync;
/// [Windows.Foundation.Metadata.Overload("ConnectAsyncWithPin")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncOperation<WiFiDirectServiceSession> ConnectAsync(winrt::hstring const& pin);
[Windows.Foundation.Metadata.Overload("ConnectAsyncWithPin")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncOperation<WiFiDirectServiceSession> ConnectAsync(string pin);
function connectAsync(pin)
Public Function ConnectAsync (pin As String) As IAsyncOperation(Of WiFiDirectServiceSession)
Parameters
- pin
-
String
Platform::String
winrt::hstring
The PIN to be used to configure the connection.
Returns
An asynchronous connection operation. When successfully completed, returns an object that represents the session that has been established.
- Attributes