RemoteSystem.FindByHostNameAsync(HostName) Method

Definition

Attempts to discover a single remote system specified by the HostName parameter.

public:
 static IAsyncOperation<RemoteSystem ^> ^ FindByHostNameAsync(HostName ^ hostName);
/// [Windows.Foundation.Metadata.RemoteAsync]
 static IAsyncOperation<RemoteSystem> FindByHostNameAsync(HostName const& hostName);
[Windows.Foundation.Metadata.RemoteAsync]
public static IAsyncOperation<RemoteSystem> FindByHostNameAsync(HostName hostName);
function findByHostNameAsync(hostName)
Public Shared Function FindByHostNameAsync (hostName As HostName) As IAsyncOperation(Of RemoteSystem)

Parameters

hostName
HostName

A wrapper object for the address of a remote system to be discovered. For information on how to instantiate a , see the HostName constructor.

Returns

An asynchronous operation that returns the RemoteSystem that was found. Returns null if no was found.

Attributes

Windows requirements

App capabilities
remoteSystem

Remarks

Important

You must confirm access to the remote system platform with a call to RemoteSystem.RequestAccessAsync before you call this method.

Applies to