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 */
public String get_Message ()

public function get Message () : String

Not applicable.

Property Value

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 System.Web.TraceContext.Write and System.Web.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.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: