PlatformDiagnosticActions.TryEscalateScenario Method

Definition

Try to run a scenario on demand.

public:
 static bool TryEscalateScenario(Platform::Guid scenarioId, PlatformDiagnosticEscalationType escalationType, Platform::String ^ outputDirectory, bool timestampOutputDirectory, bool forceEscalationUpload, IMapView<Platform::String ^, Platform::String ^> ^ triggers);
 static bool TryEscalateScenario(winrt::guid const& scenarioId, PlatformDiagnosticEscalationType const& escalationType, winrt::hstring const& outputDirectory, bool const& timestampOutputDirectory, bool const& forceEscalationUpload, IMapView<winrt::hstring, winrt::hstring const&> const& triggers);
public static bool TryEscalateScenario(Guid scenarioId, PlatformDiagnosticEscalationType escalationType, string outputDirectory, bool timestampOutputDirectory, bool forceEscalationUpload, IReadOnlyDictionary<string,string> triggers);
function tryEscalateScenario(scenarioId, escalationType, outputDirectory, timestampOutputDirectory, forceEscalationUpload, triggers)
Public Shared Function TryEscalateScenario (scenarioId As Guid, escalationType As PlatformDiagnosticEscalationType, outputDirectory As String, timestampOutputDirectory As Boolean, forceEscalationUpload As Boolean, triggers As IReadOnlyDictionary(Of String, String)) As Boolean

Parameters

scenarioId
Guid

Platform::Guid

winrt::guid

The scenario identifier.

escalationType
PlatformDiagnosticEscalationType

The type of escalation.

outputDirectory
String

Platform::String

winrt::hstring

The path to the location where the diagnostic data will be stored.

timestampOutputDirectory
Boolean

bool

True to have the output directory timestamp reflect when the diagnostic data is written to the directory; false otherwise.

forceEscalationUpload
Boolean

bool

If the diagnostic scenario cannot be found on the device, true initiates an upload of the escalation scenario.

triggers

IMapView<String,String>

IReadOnlyDictionary<String,String>

IMapView<Platform::String,Platform::String>

IMapView<winrt::hstring,winrt::hstring>

A dictionary of trigger and property pairs. The format is "$(T,P)=V where T is the trigger, P is the property, and V is the value. For example, {""$(T1,Filename)=c:\foo.dat"} implies that the Connected User Experience and Telemetry component will substitute c:\foo.dat in any action which specifies $(T1,FileName).

Returns

Boolean

bool

True indicates the scenario was escalated; false, otherwise.

Applies to