ProcessModelLogLevel 列挙型
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
イベント ログに記録されるイベントの種類を指定します。
この API は製品インフラストラクチャをサポートします。コードから直接使用するものではありません。
public enum class ProcessModelLogLevel
public enum ProcessModelLogLevel
type ProcessModelLogLevel =
Public Enum ProcessModelLogLevel
- 継承
名前 | 値 | 説明 |
---|---|---|
All | 1 | すべてのプロセス イベントのログを記録することを指定します。 アプリケーションが発行する可能性のあるエラーを、フィルター処理なしで確認したい場合は、このオプションを使用します。 このオプションは、構築およびデバッグ フェーズで便利です。 |
Errors | 2 | 予測不可能なシャットダウン、メモリ不足シャットダウン、およびデッドロック シャットダウンのみ記録されることを指定します。 これが既定値です。 |
None | 0 | イベントのログを記録しないことを指定します。 このオプションは、テスト済みおよび展開済みのアプリケーションに使用できます。 |
ProcessModelSection.LogLevel プロパティを設定する方法を次の例に示します。
// Get the current LogLevel property value.
ProcessModelLogLevel comLogLevel =
processModelSection.LogLevel;
// Set the LogLevel property to ProcessModelLogLevel.All.
processModelSection.LogLevel = ProcessModelLogLevel.All;
' Get the current LogLevel property value.
Dim comLogLevel As ProcessModelLogLevel = _
processModelSection.LogLevel
' Set the LogLevel property to ProcessModelLogLevel.All.
processModelSection.LogLevel = ProcessModelLogLevel.All
ProcessModelLogLevel
列挙には、 プロパティを設定するときに使用する値がProcessModelSection.LogLevel含まれています。
既定値は Errors
です。
製品 | バージョン |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
.NET に関するフィードバック
.NET はオープンソース プロジェクトです。 フィードバックを提供するにはリンクを選択します。