Share via


MessageLoggingElement.MaxMessagesToLog 屬性

定義

取得或設定值,指定要記錄的訊息數目上限。

public:
 property int MaxMessagesToLog { int get(); void set(int value); };
[System.Configuration.ConfigurationProperty("maxMessagesToLog", DefaultValue=10000)]
[System.Configuration.IntegerValidator(MinValue=-1)]
public int MaxMessagesToLog { get; set; }
[<System.Configuration.ConfigurationProperty("maxMessagesToLog", DefaultValue=10000)>]
[<System.Configuration.IntegerValidator(MinValue=-1)>]
member this.MaxMessagesToLog : int with get, set
Public Property MaxMessagesToLog As Integer

屬性值

要記錄的訊息數目上限。 預設值是 1000。

屬性

適用於