Export (0) Print
Expand All

TraceSection::MostRecent Property

Gets or sets a value indicating whether the most recent requests are always stored on the server.

Namespace:  System.Web.Configuration
Assembly:  System.Web (in System.Web.dll)

[ConfigurationPropertyAttribute(L"mostRecent", DefaultValue = false)]
public:
property bool MostRecent {
	bool get ();
	void set (bool value);
}

Property Value

Type: System::Boolean
true 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.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Community Additions

ADD
Show:
© 2014 Microsoft