CompiledQuery.Compile(Of TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TResult) Method (Expression(Of Func(Of TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TResult)))

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Compiles the query.

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

Public Shared Function Compile(Of TArg0 As DataContext, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TResult) (
	query As Expression(Of Func(Of TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TResult))
) As Func(Of TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TResult)

Parameters

query
Type: System.Linq.Expressions.Expression(Of Func(Of TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TResult))

The query expression to be compiled.

Return Value

Type: System.Func(Of TArg0, TArg1, TArg2, TArg3, TArg4, TArg5, TArg6, TArg7, TResult)

A generic delegate that represents the compiled query.

Type Parameters

TArg0

Represents the type of the parameter that has to be passed in when executing the delegate returned by the Compile(Of TArg0, TResult) method.

TArg1

Represents the type of the parameter that has to be passed in when executing the delegate returned by the Compile(Of TArg0, TResult) method.

TArg2

Represents the type of the parameter that has to be passed in when executing the delegate returned by the Compile(Of TArg0, TResult) method.

TArg3

Represents the type of the parameter that has to be passed in when executing the delegate returned by the Compile(Of TArg0, TResult) method.

TArg4

Represents the type of the parameter that has to be passed in when executing the delegate returned by the Compile(Of TArg0, TResult) method.

TArg5

Represents the type of the parameter that has to be passed in when executing the delegate returned by the Compile(Of TArg0, TResult) method.

TArg6

Represents the type of the parameter that has to be passed in when executing the delegate returned by the Compile(Of TArg0, TResult) method.

TArg7

Represents the type of the parameter that has to be passed in when executing the delegate returned by the Compile(Of TArg0, TResult) method.

TResult

The type of T in the System.Collections.Generic.IEnumerable(Of T) returned when executing the delegate returned by the Compile(Of TArg0, TResult) method.

.NET Framework
Available since 4.0
Return to top
Show: