Share via


RemoteSystemConnectionRequest.CreateFromConnectionToken(String) Method

Definition

Returns a RemoteSystemConnectionRequest based on a ConnectionToken.

public:
 static RemoteSystemConnectionRequest ^ CreateFromConnectionToken(Platform::String ^ connectionToken);
 static RemoteSystemConnectionRequest CreateFromConnectionToken(winrt::hstring const& connectionToken);
public static RemoteSystemConnectionRequest CreateFromConnectionToken(string connectionToken);
function createFromConnectionToken(connectionToken)
Public Shared Function CreateFromConnectionToken (connectionToken As String) As RemoteSystemConnectionRequest

Parameters

connectionToken
String

Platform::String

winrt::hstring

The specific connection token for which the RemoteSystemConnectionRequest will be created with.

Returns

An instance of the RemoteSystemConnectionRequest class.

Windows requirements

Device family
Windows 10, version 1903 (introduced in 10.0.18362.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v8.0)

Remarks

CreateFromConnectionToken requires the RemoteSystem capability on Windows, and it requires the RemoteSystem::RequestAccessAsync function to have been called previously. Calling without both of these permissions results in an exception.

Applies to

See also

  • <xref:Windows.System.RemoteSystems.RemoteSystemConnectionRequest.ConnectionToken%0aM%3aWindows.System.RemoteSystems.RemoteSystemConnectionRequest.CreateFromConnectionTokenForUser(Windows.System.User%2cSystem.String)>