PlatformDiagnosticActions.ForceUpload 方法

定义

导致在指定的参数中上传诊断数据。

public:
 static PlatformDiagnosticActionState ForceUpload(PlatformDiagnosticEventBufferLatencies latency, bool uploadOverCostedNetwork, bool uploadOverBattery);
 static PlatformDiagnosticActionState ForceUpload(PlatformDiagnosticEventBufferLatencies const& latency, bool const& uploadOverCostedNetwork, bool const& uploadOverBattery);
public static PlatformDiagnosticActionState ForceUpload(PlatformDiagnosticEventBufferLatencies latency, bool uploadOverCostedNetwork, bool uploadOverBattery);
function forceUpload(latency, uploadOverCostedNetwork, uploadOverBattery)
Public Shared Function ForceUpload (latency As PlatformDiagnosticEventBufferLatencies, uploadOverCostedNetwork As Boolean, uploadOverBattery As Boolean) As PlatformDiagnosticActionState

参数

uploadOverCostedNetwork
Boolean

bool

如果为 True,则上传即使设备仅有权访问手机网络数据连接;否则为 false。

uploadOverBattery
Boolean

bool

如果为 True ,则即使设备使用电池运行,也上传;否则 为 false

返回

适用于