PlatformDiagnosticActions.ForceUpload 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
导致在指定的参数中上传诊断数据。
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 。