Retrieves the active profiler for a datacontext instance.

Namespace: Huagati.LinqToSQL.Profiler
Assembly: HuagatiL2SProfiler (in HuagatiL2SProfiler.dll) Version: 1.33.3996.16059

Syntax

C#
public static QueryProfiler GetActiveProfiler(
	this DataContext dc
)
Visual Basic
<ExtensionAttribute> _
Public Shared Function GetActiveProfiler ( _
	dc As DataContext _
) As QueryProfiler
Visual C++
[ExtensionAttribute]
public:
static QueryProfiler^ GetActiveProfiler(
	DataContext^ dc
)

Parameters

dc
Type: System.Data.Linq..::..DataContext
DataContext object to retrieve the profiler for.

Return Value

The active profiler instance for the datacontext if profiling is enabled. Returns null if no profiler is attached to the DataContext object this method was called on.

See Also