Log Property
Collapse the table of content
Expand the table of content

DataContext.Log Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Specifies the destination to write the SQL query or command.

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

'Declaration
Public Property Log As TextWriter

Property Value

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

Set this property to Nothing to disable command logging.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft