This documentation is archived and is not being maintained.
ParameterExpression Class
Visual Studio 2008
Updated: October 2008
Represents a named parameter expression.
Assembly: System.Core (in System.Core.dll)
For example, assume that you have the following query:
companies.Where(Function(company) company.ToLower() = "coho winery" _ OrElse company.Length > 16).OrderBy(Function(company) company)
In this case, company becomes a parameter expression. To construct an expression tree for this parameter, you can use the following code:
You can find a complete example of using parameter expressions in expression trees in How to: Use Expression Trees to Build Dynamic Queries.
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: