DiagnosticsSettings Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides properties and methods to access the user's diagnostics settings.
public ref class DiagnosticsSettings sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 262144)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class DiagnosticsSettings final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 262144)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class DiagnosticsSettings
Public NotInheritable Class DiagnosticsSettings
- Inheritance
- Attributes
Windows requirements
Device family |
Windows 10 Creators Update (introduced in 10.0.15063.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v4.0)
|
Remarks
Diagnostics settings are per user and per device.
Call GetForUser if your app supports multiple users. Call GetDefault if your app supports a single user.
Properties
CanUseDiagnosticsToTailorExperiences |
Gets a value that indicates whether the user has turned on access to diagnostic data for tailored experiences in the Windows Feedback & diagnostics settings. |
User |
Gets the User associated with this instance of diagnostics settings. |
Methods
GetDefault() |
Retrieves the default diagnostics settings. |
GetForUser(User) |
Retrieves the diagnostics settings for the specified user. |