Export (0) Print
Expand All
Expand Minimize

CompiledQuery.Compile<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TResult> Method (Expression<Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TResult>>)

Compiles the query.

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

public static Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TResult> Compile<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TResult>(
	Expression<Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TResult>> query
)
where TArg0 : DataContext

Type Parameters

TArg0

Represents the type of the parameter that has to be passed in when executing the delegate returned by the Compile method.

TArg1

Represents the type of the parameter that has to be passed in when executing the delegate returned by the Compile method.

TArg2

Represents the type of the parameter that has to be passed in when executing the delegate returned by the Compile method.

TArg3

Represents the type of the parameter that has to be passed in when executing the delegate returned by the Compile method.

TArg4

Represents the type of the parameter that has to be passed in when executing the delegate returned by the Compile method.

TArg5

Represents the type of the parameter that has to be passed in when executing the delegate returned by the Compile method.

TArg6

Represents the type of the parameter that has to be passed in when executing the delegate returned by the Compile method.

TArg7

Represents the type of the parameter that has to be passed in when executing the delegate returned by the Compile method.

TArg8

Represents the type of the parameter that has to be passed in when executing the delegate returned by the Compile method.

TArg9

Represents the type of the parameter that has to be passed in when executing the delegate returned by the Compile method.

TResult

The type of T in the System.Collections.Generic.IEnumerable<T> returned when executing the delegate returned by the Compile method.

Parameters

query
Type: System.Linq.Expressions.Expression<Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TResult>>
The query expression to be compiled.

Return Value

Type: System.Func<TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TArg8, TArg9, TResult>
A generic delegate that represents the compiled query.

.NET Framework

Supported in: 4

.NET Framework Client Profile

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

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

Community Additions

ADD
Show:
© 2014 Microsoft