แก้ไข

แชร์ผ่าน


Log.TraceSource Property

Definition

Gets to the TraceSource object that underlies the Log object.

public:
 property System::Diagnostics::TraceSource ^ TraceSource { System::Diagnostics::TraceSource ^ get(); };
public System.Diagnostics.TraceSource TraceSource { get; }
member this.TraceSource : System.Diagnostics.TraceSource
Public ReadOnly Property TraceSource As TraceSource

Property Value

The TraceSource object that underlies the Log object.

Remarks

You can use this property to determine the current configuration of the Log object.

In client applications, the Log object is available through the My.Application.Log object. In Web applications, the Log object is available through the My.Log object.

This is an advanced member; it does not show in IntelliSense unless you select the All tab.

The following table lists an example of a task involving the TraceSource property.

To See
Get information for each of the Log object's log listeners. Troubleshooting: Log Listeners

Availability by Project Type

Project type Available
Windows Application Yes
Class Library Yes
Console Application Yes
Windows Control Library Yes
Web Control Library No
Windows Service Yes
Web Site Yes

Applies to

See also