This documentation is archived and is not being maintained.

TraceContextRecord::Message Property

Gets the user-defined trace message.

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

public:
property String^ Message {
	String^ get ();
}

Property Value

Type: System::String
A string that represents a message for the trace record.

The message can be any string, and is used to write detailed tracing information. It corresponds to the message parameter that is passed to the TraceContext::Write and TraceContext::Warn methods. The information can be run-time values, messages to orient you and guide you through a program's execution, or other diagnostic data.

The following code example demonstrates how to access the Message property of a TraceContextRecord, and print it to the Response stream.

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.
Show: