次の方法で共有


CompiledQuery.Compile<TArg0, TArg1, TArg2, TArg3, TResult> Method (Expression<Func<TArg0, TArg1, TArg2, TArg3, TResult>>)

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

Compiles the query.

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

Syntax

'Declaration
Public Shared Function Compile(Of TArg0 As DataContext, TArg1, TArg2, TArg3, TResult) ( _
    query As Expression(Of Func(Of TArg0, TArg1, TArg2, TArg3, TResult)) _
) As Func(Of TArg0, TArg1, TArg2, TArg3, TResult)
public static Func<TArg0, TArg1, TArg2, TArg3, TResult> Compile<TArg0, TArg1, TArg2, TArg3, TResult>(
    Expression<Func<TArg0, TArg1, TArg2, TArg3, 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.

Parameters

Return Value

Type: System.Func<TArg0, TArg1, TArg2, TArg3, TResult>
A generic delegate that represents the compiled query.

Remarks

See Compile.

Examples

See Compile.

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.