次の方法で共有


ProcessModelLogLevel 列挙型

定義

イベント ログに記録するイベントの種類を指定します。

この API は製品インフラストラクチャをサポートします。コードから直接使用するものではありません。

public enum class ProcessModelLogLevel
public enum ProcessModelLogLevel
type ProcessModelLogLevel = 
Public Enum ProcessModelLogLevel
継承
ProcessModelLogLevel

フィールド

名前 説明
None 0

イベントがログに記録されていないことを指定します。 このオプションは、テスト済みおよびデプロイ済みのアプリケーションに使用できます。

All 1

すべてのプロセス イベントがログに記録されることを指定します。 このオプションは、フィルター処理を行わずに、アプリケーションで発生する可能性のあるエラーを調べる場合に使用します。 このオプションは、ビルドとデバッグのフェーズで役立ちます。

Errors 2

予期しないシャットダウン、メモリ制限のシャットダウン、デッドロックのシャットダウンのみをログに記録することを指定します。 これが既定値です。

次の例では、 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 です。

適用対象

こちらもご覧ください