Udostępnij za pośrednictwem


Launcher.LaunchUriForResultsAsync Method

Definition

Overloads

LaunchUriForResultsAsync(Uri, LauncherOptions)

Asynchronously starts the default app associated with the URI scheme name for the specified URI, using the specified options.

LaunchUriForResultsAsync(Uri, LauncherOptions, ValueSet)

Asynchronously starts the default app associated with the URI scheme name for the specified URI, using the specified options and input data.

LaunchUriForResultsAsync(Uri, LauncherOptions)

Asynchronously starts the default app associated with the URI scheme name for the specified URI, using the specified options.

public:
 static IAsyncOperation<LaunchUriResult ^> ^ LaunchUriForResultsAsync(Uri ^ uri, LauncherOptions ^ options);
/// [Windows.Foundation.Metadata.Overload("LaunchUriForResultsAsync")]
 static IAsyncOperation<LaunchUriResult> LaunchUriForResultsAsync(Uri const& uri, LauncherOptions const& options);
[Windows.Foundation.Metadata.Overload("LaunchUriForResultsAsync")]
public static IAsyncOperation<LaunchUriResult> LaunchUriForResultsAsync(System.Uri uri, LauncherOptions options);
function launchUriForResultsAsync(uri, options)
Public Shared Function LaunchUriForResultsAsync (uri As Uri, options As LauncherOptions) As IAsyncOperation(Of LaunchUriResult)

Parameters

uri
Uri Uri

The Uri to launch.

options
LauncherOptions

The launch options.

Returns

When this method completes, it returns the results of the launch.

Attributes

Remarks

Launching an app for results allows you to launch an app from another app and exchange data between the two.

This API must be called from within an ASTA thread (also known as a UI thread).

When calling this method, the options parameter must contain a valid value for LauncherOptions.TargetApplicationPackageFamilyName.

See also

Applies to

LaunchUriForResultsAsync(Uri, LauncherOptions, ValueSet)

Asynchronously starts the default app associated with the URI scheme name for the specified URI, using the specified options and input data.

public:
 static IAsyncOperation<LaunchUriResult ^> ^ LaunchUriForResultsAsync(Uri ^ uri, LauncherOptions ^ options, ValueSet ^ inputData);
/// [Windows.Foundation.Metadata.Overload("LaunchUriForResultsWithDataAsync")]
 static IAsyncOperation<LaunchUriResult> LaunchUriForResultsAsync(Uri const& uri, LauncherOptions const& options, ValueSet const& inputData);
[Windows.Foundation.Metadata.Overload("LaunchUriForResultsWithDataAsync")]
public static IAsyncOperation<LaunchUriResult> LaunchUriForResultsAsync(System.Uri uri, LauncherOptions options, ValueSet inputData);
function launchUriForResultsAsync(uri, options, inputData)
Public Shared Function LaunchUriForResultsAsync (uri As Uri, options As LauncherOptions, inputData As ValueSet) As IAsyncOperation(Of LaunchUriResult)

Parameters

uri
Uri Uri

The Uri to launch.

options
LauncherOptions

The launch options.

inputData
ValueSet

The data to send to the launched app.

Returns

When this method completes, it returns the results of the launch.

Attributes

Remarks

Launching an app for results allows you to launch an app from another app and exchange data between the two.

This API must be called from within an ASTA thread (also known as a UI thread).

When calling this method, the options parameter must contain a valid value for LauncherOptions.TargetApplicationPackageFamilyName.

See also

Applies to