TraceContextRecord::Category Property
Gets the user-defined category for the trace record.
Assembly: System.Web (in System.Web.dll)
The category is used to better organize trace messages into recognizable groups, but can be any string. The TraceContext class uses String::Empty as its default category for methods that take only a message parameter. The default category for ASP.NET, which writes several trace records when tracing is enabled, is "aspx.page".
The following code example demonstrates how to access the Category property of a TraceContextRecord, and print it and its associated trace message to the Response stream.
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.