PlatformDiagnosticActions.TryEscalateScenario Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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
bool
True indicates the scenario was escalated; false, otherwise.