Share via


QueryCompilationContext.RegisterRuntimeParameter Method

Definition

Registers a runtime parameter that is being added at some point during the compilation phase. A lambda must be provided, which will extract the parameter's value from the QueryContext every time the query is executed.

public virtual System.Linq.Expressions.ParameterExpression RegisterRuntimeParameter (string name, System.Linq.Expressions.LambdaExpression valueExtractor);
abstract member RegisterRuntimeParameter : string * System.Linq.Expressions.LambdaExpression -> System.Linq.Expressions.ParameterExpression
override this.RegisterRuntimeParameter : string * System.Linq.Expressions.LambdaExpression -> System.Linq.Expressions.ParameterExpression
Public Overridable Function RegisterRuntimeParameter (name As String, valueExtractor As LambdaExpression) As ParameterExpression

Parameters

name
String
valueExtractor
LambdaExpression

Returns

Applies to