Stops a simulation asynchronously.
public:
static IAsyncAction^ StopAsync()
Type: IAsyncAction
Returns an IAsyncAction object that represents the state of the asynchronous operation.
var XtfSimulationManager = Microsoft.Xbox.Tools.ConsoleExtensions.SimulationManager;
XtfSimulationManager.stopAsync().then(
function complete() {
// Handle success here
writeLog("SimulationManager.stopAsync succeeded");
}.bind(this),
function error(e) {
// Handle error here
writeError("SimulationManager.stopAsync error: ", e);
}.bind(this)
);
C++
Microsoft::Xbox::Tools::ConsoleExtensions::SimulationManager::StopAsync()->Completed =
ref new Windows::Foundation::AsyncActionCompletedHandler(
[ this ] ( Windows::Foundation::IAsyncAction^ action, Windows::Foundation::AsyncStatus asyncStatus )
{
if( asyncStatus == Windows::Foundation::AsyncStatus::Completed )
{
OutputDebugStringW(L"ERA Console API call succeeded: SimulationManager::StopAsync\r\n");
}
else
{
OutputDebugStringW(L"ERA Console API call failed: SimulationManager::StopAsync\r\n");
}
});
Namespace: Microsoft.Xbox.Tools.ConsoleExtensions
Metadata: microsoft.xbox.tools.consoleextensions.winmd