| ExpressionParameterReplacerReplaceParameter Method  | 
 
            Replaces all occurences of one parameter with a different parameter.
            
 
    Namespace: 
   MongoDB.Driver.Linq
    Assembly:
   MongoDB.Driver.Legacy (in MongoDB.Driver.Legacy.dll) Version: 2.12.2+a4a3888f4fb51bb518b1eb5002effc2d47f2ea6a
 Syntax
Syntaxpublic static Expression ReplaceParameter(
	Expression node,
	ParameterExpression fromParameter,
	Expression toExpression
)
Public Shared Function ReplaceParameter ( 
	node As Expression,
	fromParameter As ParameterExpression,
	toExpression As Expression
) As Expression
static member ReplaceParameter : 
        node : Expression * 
        fromParameter : ParameterExpression * 
        toExpression : Expression -> Expression 
Parameters
- node
- Type: System.Linq.ExpressionsExpression
 The expression containing the parameter that should be replaced.
- fromParameter
- Type: System.Linq.ExpressionsParameterExpression
 The from parameter.
- toExpression
- Type: System.Linq.ExpressionsExpression
 The expression that replaces the parameter.
Return Value
Type: 
ExpressionThe expression with all occurrences of the parameter replaced.
 See Also
See Also