Launcher.LaunchUriForResultsAsync Method
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.
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. |
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
- 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
WinRT Build 26100 and other versions
Product | Versions |
---|---|
WinRT | Build 10240, Build 10586, Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100 |
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
- 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
WinRT Build 26100 and other versions
Product | Versions |
---|---|
WinRT | Build 10240, Build 10586, Build 14383, Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100 |