Share via


GameListEntry.SetLauncherExecutableFileAsync Method

Definition

Overloads

SetLauncherExecutableFileAsync(IStorageFile)

Sets the launch path for the game’s executable and launch parameters. This can fail if the LaunchableState is set to ByTitle.

SetLauncherExecutableFileAsync(IStorageFile, String)

Sets the launch path for the game’s executable. This can fail if the LaunchableState is set to ByTitle.

SetLauncherExecutableFileAsync(IStorageFile)

Sets the launch path for the game’s executable and launch parameters. This can fail if the LaunchableState is set to 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

Parameters

executableFile
IStorageFile

Returns

Attributes

Windows requirements

Device family
Windows Desktop Extension SDK (introduced in 10.0.16299.0)
Windows Mobile Extension SDK (introduced in 10.0.16299.0)
API contract
Windows.Gaming.Preview.GamesEnumerationContract (introduced in v2.0)
App capabilities
gameList

Remarks

This API is not available to all apps. Unless your developer account is specially provisioned by Microsoft, calls to these APIs will fail at runtime.

Applies to

SetLauncherExecutableFileAsync(IStorageFile, String)

Sets the launch path for the game’s executable. This can fail if the LaunchableState is set to 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

Parameters

executableFile
IStorageFile
launchParams
String

Platform::String

winrt::hstring

Returns

Attributes

Windows requirements

Device family
Windows Desktop Extension SDK (introduced in 10.0.16299.0)
Windows Mobile Extension SDK (introduced in 10.0.16299.0)
API contract
Windows.Gaming.Preview.GamesEnumerationContract (introduced in v2.0)
App capabilities
gameList

Remarks

This API is not available to all apps. Unless your developer account is specially provisioned by Microsoft, calls to these APIs will fail at runtime.

Applies to