ProcessModelLogLevel 枚举
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
指定要记录到事件日志的事件类型。
此 API 支持产品基础结构,不能在代码中直接使用。
public enum class ProcessModelLogLevel
public enum ProcessModelLogLevel
type ProcessModelLogLevel =
Public Enum 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。