DiagnosticsSettings クラス

定義

ユーザーの診断設定にアクセスするためのプロパティとメソッドを提供します。

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
継承
Object Platform::Object IInspectable DiagnosticsSettings
属性

Windows の要件

デバイス ファミリ
Windows 10 Creators Update (10.0.15063.0 で導入)
API contract
Windows.Foundation.UniversalApiContract (v4.0 で導入)

注釈

診断設定は、ユーザーごと、デバイスごとです。

アプリで複数のユーザーがサポートされている場合は 、GetForUser を呼び出します。 アプリが 1 人のユーザーをサポートしている場合は、 GetDefault を呼び出します。

プロパティ

CanUseDiagnosticsToTailorExperiences

ユーザーが Windows フィードバック & 診断 設定で調整されたエクスペリエンスの診断データへのアクセスを有効にしたかどうかを示す値を取得します。

User

診断設定のこのインスタンスに関連付けられているユーザーを取得します

メソッド

GetDefault()

既定の診断設定を取得します。

GetForUser(User)

指定したユーザーの診断設定を取得します。

適用対象