Compartir a través de


DataContext.Log Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Specifies the destination to write the SQL query or command.

Namespace:  System.Data.Linq
Assembly:  System.Data.Linq (in System.Data.Linq.dll)

Syntax

'Declaration
Public Property Log As TextWriter
public TextWriter Log { get; set; }

Property Value

Type: System.IO.TextWriter
The TextReader to use for writing the command.

Remarks

Set this property to nulla null reference (Nothing in Visual Basic) to disable command logging.

Version Information

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.