ProcessModelLogLevel 列舉

定義

指定在事件記錄檔記錄的事件型別。

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

public enum class ProcessModelLogLevel
public enum ProcessModelLogLevel
type ProcessModelLogLevel = 
Public Enum ProcessModelLogLevel
繼承
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

適用於

另請參閱