GameListEntry.SetLauncherExecutableFileAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| SetLauncherExecutableFileAsync(IStorageFile) |
设置游戏的可执行文件和启动参数的启动路径。 如果将 LaunchableState 设置为 ByTitle,则此操作可能会失败。 |
| SetLauncherExecutableFileAsync(IStorageFile, String) |
设置游戏可执行文件的启动路径。 如果将 LaunchableState 设置为 ByTitle,则此操作可能会失败。 |
SetLauncherExecutableFileAsync(IStorageFile)
设置游戏的可执行文件和启动参数的启动路径。 如果将 LaunchableState 设置为 ByTitle,则此操作可能会失败。
public:
virtual IAsyncAction ^ SetLauncherExecutableFileAsync(IStorageFile ^ executableFile) = SetLauncherExecutableFileAsync;
/// [Windows.Foundation.Metadata.Overload("SetLauncherExecutableFileAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncAction SetLauncherExecutableFileAsync(IStorageFile const& executableFile);
[Windows.Foundation.Metadata.Overload("SetLauncherExecutableFileAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction SetLauncherExecutableFileAsync(IStorageFile executableFile);
function setLauncherExecutableFileAsync(executableFile)
Public Function SetLauncherExecutableFileAsync (executableFile As IStorageFile) As IAsyncAction
参数
- executableFile
- IStorageFile
返回
- 属性
Windows 要求
| 设备系列 |
Windows Desktop Extension SDK (在 10.0.16299.0 中引入)
Windows Mobile Extension SDK (在 10.0.16299.0 中引入) |
| API contract |
Windows.Gaming.Preview.GamesEnumerationContract (在 v2.0 中引入)
|
| 应用功能 |
gameList
|
注解
此 API 并非适用于所有应用。 除非你的开发人员帐户由 Microsoft 专门预配,否则对这些 API 的调用将在运行时失败。
适用于
SetLauncherExecutableFileAsync(IStorageFile, String)
设置游戏可执行文件的启动路径。 如果将 LaunchableState 设置为 ByTitle,则此操作可能会失败。
public:
virtual IAsyncAction ^ SetLauncherExecutableFileAsync(IStorageFile ^ executableFile, Platform::String ^ launchParams) = SetLauncherExecutableFileAsync;
/// [Windows.Foundation.Metadata.Overload("SetLauncherExecutableFileWithParamsAsync")]
/// [Windows.Foundation.Metadata.RemoteAsync]
IAsyncAction SetLauncherExecutableFileAsync(IStorageFile const& executableFile, winrt::hstring const& launchParams);
[Windows.Foundation.Metadata.Overload("SetLauncherExecutableFileWithParamsAsync")]
[Windows.Foundation.Metadata.RemoteAsync]
public IAsyncAction SetLauncherExecutableFileAsync(IStorageFile executableFile, string launchParams);
function setLauncherExecutableFileAsync(executableFile, launchParams)
Public Function SetLauncherExecutableFileAsync (executableFile As IStorageFile, launchParams As String) As IAsyncAction
参数
- executableFile
- IStorageFile
- launchParams
-
String
Platform::String
winrt::hstring
返回
- 属性
Windows 要求
| 设备系列 |
Windows Desktop Extension SDK (在 10.0.16299.0 中引入)
Windows Mobile Extension SDK (在 10.0.16299.0 中引入) |
| API contract |
Windows.Gaming.Preview.GamesEnumerationContract (在 v2.0 中引入)
|
| 应用功能 |
gameList
|
注解
此 API 并非适用于所有应用。 除非你的开发人员帐户由 Microsoft 专门预配,否则对这些 API 的调用将在运行时失败。