共用方式為


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;如果裝置只能存取行動資料連線,則為 True;否則為 false。

uploadOverBattery
Boolean

bool

如果 裝置在電池上執行,則為 True;否則 為 false

傳回

適用於