Expression.Variable 方法

定義

建立 ParameterExpression 節點,此節點可用以識別運算式樹狀中的參數或變數。Creates a ParameterExpression node that can be used to identify a parameter or a variable in an expression tree.

多載

Variable(Type, String)

建立 ParameterExpression 節點,此節點可用以識別運算式樹狀中的參數或變數。Creates a ParameterExpression node that can be used to identify a parameter or a variable in an expression tree.

Variable(Type)

建立 ParameterExpression 節點,此節點可用以識別運算式樹狀中的參數或變數。Creates a ParameterExpression node that can be used to identify a parameter or a variable in an expression tree.

Variable(Type, String)

建立 ParameterExpression 節點,此節點可用以識別運算式樹狀中的參數或變數。Creates a ParameterExpression node that can be used to identify a parameter or a variable in an expression tree.

public:
 static System::Linq::Expressions::ParameterExpression ^ Variable(Type ^ type, System::String ^ name);
public static System.Linq.Expressions.ParameterExpression Variable (Type type, string name);
public static System.Linq.Expressions.ParameterExpression Variable (Type type, string? name);
static member Variable : Type * string -> System.Linq.Expressions.ParameterExpression
Public Shared Function Variable (type As Type, name As String) As ParameterExpression

參數

type
Type

參數或變數的類型。The type of the parameter or variable.

name
String

參數或變數的名稱。The name of the parameter or variable. 這個名稱僅供偵錯或列印之用。This name is used for debugging or printing purpose only.

傳回

ParameterExpression

建立含指定之名稱和類型的 ParameterExpression 節點。A ParameterExpression node with the specified name and type.

適用於

Variable(Type)

建立 ParameterExpression 節點,此節點可用以識別運算式樹狀中的參數或變數。Creates a ParameterExpression node that can be used to identify a parameter or a variable in an expression tree.

public:
 static System::Linq::Expressions::ParameterExpression ^ Variable(Type ^ type);
public static System.Linq.Expressions.ParameterExpression Variable (Type type);
static member Variable : Type -> System.Linq.Expressions.ParameterExpression
Public Shared Function Variable (type As Type) As ParameterExpression

參數

type
Type

參數或變數的類型。The type of the parameter or variable.

傳回

ParameterExpression

建立含指定之名稱和類型的 ParameterExpression 節點。A ParameterExpression node with the specified name and type

適用於