Share via


PlatformDiagnosticActions.ForceUpload Method

Definition

Cause diagnostic data to be uploaded within the specified parameters.

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

Parameters

uploadOverCostedNetwork
Boolean

bool

True to upload even if the device only has access to a cellular data connection; false otherwise.

uploadOverBattery
Boolean

bool

True to upload even if the device is running on battery; false otherwise.

Returns

Applies to