Assembly: System.Web (in system.web.dll)
/** @property */ public boolean get_MostRecent () /** @property */ public void set_MostRecent (boolean value)
public function get MostRecent () : boolean public function set MostRecent (value : boolean)
Property Valuetrue if the most recent requests are always stored in the trace log; otherwise, false. The default is false.
Requests are stored in the trace log in the order they arrive, up to the number of requests specified in the RequestLimit property. When the request limit is reached and MostRecent is true, older requests are automatically discarded and new requests continue to be added to the log. When the request limit is reached and MostRecent is false, new requests are discarded until earlier requests are removed from the log or the request limit is increased.
The following code example shows how to use the MostRecent property. This code example is part of a larger example provided for the TraceSection class.