次の方法で共有


DiagnosticsSettings.GetDefault メソッド

定義

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

public:
 static DiagnosticsSettings ^ GetDefault();
 static DiagnosticsSettings GetDefault();
public static DiagnosticsSettings GetDefault();
function getDefault()
Public Shared Function GetDefault () As DiagnosticsSettings

戻り値

ユーザーの現在の診断設定を含む settings オブジェクト。

// From within a single user environment.
Windows.System.UserProfile.DiagnosticsSettings defaultUser =
    Windows.System.UserProfile.DiagnosticsSettings.GetDefault();

System.Diagnostics.Debug.WriteLine("Current user tailored experiences enabled: " +
    defaultUser.CanUseDiagnosticsToTailorExperiences.ToString());

適用対象