SimulationManager.StopAsync Method

Stops a simulation asynchronously.

Syntax

public:
static IAsyncAction^ StopAsync()  

Return value

Type: IAsyncAction 

Returns an IAsyncAction object that represents the state of the asynchronous operation.

Example

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");
  }
});  

Requirements

Namespace: Microsoft.Xbox.Tools.ConsoleExtensions

Metadata: microsoft.xbox.tools.consoleextensions.winmd

See also

Reference

SimulationManager Class

SimulationManager Members

Microsoft.Xbox.Tools.ConsoleExtensions Namespace