PlatformDiagnosticActions.TryEscalateScenario 方法

定义

尝试按需运行方案。

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

参数

scenarioId
Guid

Platform::Guid

winrt::guid

方案标识符。

escalationType
PlatformDiagnosticEscalationType

升级的类型。

outputDirectory
String

Platform::String

winrt::hstring

存储诊断数据的位置的路径。

timestampOutputDirectory
Boolean

bool

如果为 True ,则当诊断数据写入目录时,输出目录时间戳会反映出来;否则 为 false

forceEscalationUpload
Boolean

bool

如果在设备上找不到诊断方案, 则 true 将启动升级方案的上传。

triggers

IMapView<String,String>

IReadOnlyDictionary<String,String>

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

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

触发器和属性对的字典。 格式为“$ (T,P) =V,其中 T 为触发器,P 为属性,V 为值。 例如,{“”$ (T1,Filename) =c:\foo.dat“} 意味着连接用户体验和遥测组件将在指定 $ (T1,FileName) 的任何操作中替换 c:\foo.dat。

返回

Boolean

bool

如果为 True ,则表示方案已升级; 否则为 false

适用于