Share via


MessageLoggingElement.MaxSizeOfMessageToLog 屬性

定義

取得或設定值,指定要記錄的訊息大小上限,以位元組為單位。

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

屬性值

要記錄的訊息大小上限,以位元組為單位。 大於限制的訊息不會記錄。 這個設定會影響所有的追蹤層級。 預設為 Int32.MaxValue。

屬性

適用於