EventLogConfiguration.IsEnabled 屬性

定義

取得或設定值,這個值表示事件記錄檔已啟用還是停用。Gets or sets a value that indicates whether the event log is enabled or disabled. 已啟用的記錄檔可以記錄事件,而已停用的記錄檔則無法記錄事件。An enabled log is one in which events can be logged, and a disabled log is one in which events cannot be logged.

public:
 property bool IsEnabled { bool get(); void set(bool value); };
public bool IsEnabled { get; set; }
member this.IsEnabled : bool with get, set
Public Property IsEnabled As Boolean

屬性值

如果已啟用記錄,則 true;否則,falsetrue if the log is enabled; otherwise, false.

備註

如果此屬性的值已變更,請呼叫 SaveChanges 方法來儲存變更。If the value of this property is changed, call the SaveChanges method to save the changes.

適用於

另請參閱