TraceContextRecord.Message Property

Note: This property is new in the .NET Framework version 2.0.

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

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 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

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

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show: