Launcher.LaunchUriForUserAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
LaunchUriForUserAsync(User, Uri) |
启动与指定 URI 的 URI 方案名称关联的默认多用户应用,并提供特定 用户 作为上下文。 |
LaunchUriForUserAsync(User, Uri, LauncherOptions) |
使用指定的选项启动与指定 URI 的 URI 方案名称关联的默认多用户应用,并提供特定的 用户 作为上下文。 |
LaunchUriForUserAsync(User, Uri, LauncherOptions, ValueSet) |
使用指定的选项和输入数据启动与指定 URI 的 URI 方案名称关联的默认多用户应用,并提供特定的 用户 作为上下文。 |
LaunchUriForUserAsync(User, Uri)
public:
static IAsyncOperation<LaunchUriStatus> ^ LaunchUriForUserAsync(User ^ user, Uri ^ uri);
/// [Windows.Foundation.Metadata.Overload("LaunchUriForUserAsync")]
static IAsyncOperation<LaunchUriStatus> LaunchUriForUserAsync(User const& user, Uri const& uri);
[Windows.Foundation.Metadata.Overload("LaunchUriForUserAsync")]
public static IAsyncOperation<LaunchUriStatus> LaunchUriForUserAsync(User user, System.Uri uri);
function launchUriForUserAsync(user, uri)
Public Shared Function LaunchUriForUserAsync (user As User, uri As Uri) As IAsyncOperation(Of LaunchUriStatus)
参数
- user
- User
要传递给已启动应用的用户上下文。
返回
启动尝试的状态。
- 属性
Windows 要求
设备系列 |
Windows 10 Anniversary Edition (在 10.0.14393.0 中引入)
|
API contract |
Windows.Foundation.UniversalApiContract (在 v3.0 中引入)
|
另请参阅
- LaunchUriForUserAsync(User, Uri, LauncherOptions)
- LaunchUriForUserAsync(User, Uri, LauncherOptions, ValueSet)
适用于
LaunchUriForUserAsync(User, Uri, LauncherOptions)
public:
static IAsyncOperation<LaunchUriStatus> ^ LaunchUriForUserAsync(User ^ user, Uri ^ uri, LauncherOptions ^ options);
/// [Windows.Foundation.Metadata.Overload("LaunchUriWithOptionsForUserAsync")]
static IAsyncOperation<LaunchUriStatus> LaunchUriForUserAsync(User const& user, Uri const& uri, LauncherOptions const& options);
[Windows.Foundation.Metadata.Overload("LaunchUriWithOptionsForUserAsync")]
public static IAsyncOperation<LaunchUriStatus> LaunchUriForUserAsync(User user, System.Uri uri, LauncherOptions options);
function launchUriForUserAsync(user, uri, options)
Public Shared Function LaunchUriForUserAsync (user As User, uri As Uri, options As LauncherOptions) As IAsyncOperation(Of LaunchUriStatus)
参数
- user
- User
要传递给已启动应用的用户上下文。
- options
- LauncherOptions
应用的启动选项。
返回
启动尝试的状态。
- 属性
Windows 要求
设备系列 |
Windows 10 Anniversary Edition (在 10.0.14393.0 中引入)
|
API contract |
Windows.Foundation.UniversalApiContract (在 v3.0 中引入)
|
另请参阅
适用于
LaunchUriForUserAsync(User, Uri, LauncherOptions, ValueSet)
public:
static IAsyncOperation<LaunchUriStatus> ^ LaunchUriForUserAsync(User ^ user, Uri ^ uri, LauncherOptions ^ options, ValueSet ^ inputData);
/// [Windows.Foundation.Metadata.Overload("LaunchUriWithDataForUserAsync")]
static IAsyncOperation<LaunchUriStatus> LaunchUriForUserAsync(User const& user, Uri const& uri, LauncherOptions const& options, ValueSet const& inputData);
[Windows.Foundation.Metadata.Overload("LaunchUriWithDataForUserAsync")]
public static IAsyncOperation<LaunchUriStatus> LaunchUriForUserAsync(User user, System.Uri uri, LauncherOptions options, ValueSet inputData);
function launchUriForUserAsync(user, uri, options, inputData)
Public Shared Function LaunchUriForUserAsync (user As User, uri As Uri, options As LauncherOptions, inputData As ValueSet) As IAsyncOperation(Of LaunchUriStatus)
参数
- user
- User
要传递给已启动应用的用户上下文。
- options
- LauncherOptions
应用的启动选项。
- inputData
- ValueSet
应用的输入数据。
返回
启动尝试的状态。
- 属性
Windows 要求
设备系列 |
Windows 10 Anniversary Edition (在 10.0.14393.0 中引入)
|
API contract |
Windows.Foundation.UniversalApiContract (在 v3.0 中引入)
|