PlatformDiagnosticsAndUsageDataSettings
PlatformDiagnosticsAndUsageDataSettings
PlatformDiagnosticsAndUsageDataSettings
PlatformDiagnosticsAndUsageDataSettings
Class
Definition
Provides access to settings for collecting diagnostic data and an event to subscribe to changes to the platform diagnostics and usage data collection level settings.
public : static class PlatformDiagnosticsAndUsageDataSettingspublic static class PlatformDiagnosticsAndUsageDataSettingsPublic Static Class PlatformDiagnosticsAndUsageDataSettings// You can use this class in JavaScript.
- Attributes
Windows 10 requirements
| Device family |
Windows 10 (introduced v10.0.10586.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v2)
|
Remarks
This is a static class.
Properties
CollectionLevel CollectionLevel CollectionLevel CollectionLevel
Gets the current data collection level.
public : static PlatformDataCollectionLevel CollectionLevel { get; }public static PlatformDataCollectionLevel CollectionLevel { get; }Public Static ReadOnly Property CollectionLevel As PlatformDataCollectionLevel// You can use this property in JavaScript.
- Value
- PlatformDataCollectionLevel PlatformDataCollectionLevel PlatformDataCollectionLevel PlatformDataCollectionLevel
The current data collection level.
Methods
CanCollectDiagnostics(PlatformDataCollectionLevel) CanCollectDiagnostics(PlatformDataCollectionLevel) CanCollectDiagnostics(PlatformDataCollectionLevel) CanCollectDiagnostics(PlatformDataCollectionLevel)
Returns a Boolean value indicating if the requested data collection level can be enabled.
public : static PlatForm::Boolean CanCollectDiagnostics(PlatformDataCollectionLevel level)public static bool CanCollectDiagnostics(PlatformDataCollectionLevel level)Public Static Function CanCollectDiagnostics(level As PlatformDataCollectionLevel) As bool// You can use this method in JavaScript.
Parameters
- level
- PlatformDataCollectionLevel PlatformDataCollectionLevel PlatformDataCollectionLevel PlatformDataCollectionLevel
The desired data collection level.
Returns
PlatForm::Boolean
bool
bool
bool
Returns true if the requested data collection level can be enabled, otherwise false.
Events
CollectionLevelChanged CollectionLevelChanged CollectionLevelChanged CollectionLevelChanged
Occurs when the data collection level has changed.
public : static event EventHandler CollectionLevelChanged<object>public static event EventHandler CollectionLevelChanged<object>Public Static Event CollectionLevelChanged<object>// You can use this event in JavaScript.