Expression.IsTrue 方法
定義
傳回運算式是否評估為 true。Returns whether the expression evaluates to true.
多載
IsTrue(Expression) |
傳回運算式是否評估為 true。Returns whether the expression evaluates to true. |
IsTrue(Expression, MethodInfo) |
傳回運算式是否評估為 true。Returns whether the expression evaluates to true. |
IsTrue(Expression)
傳回運算式是否評估為 true。Returns whether the expression evaluates to true.
public:
static System::Linq::Expressions::UnaryExpression ^ IsTrue(System::Linq::Expressions::Expression ^ expression);
public static System.Linq.Expressions.UnaryExpression IsTrue (System.Linq.Expressions.Expression expression);
static member IsTrue : System.Linq.Expressions.Expression -> System.Linq.Expressions.UnaryExpression
Public Shared Function IsTrue (expression As Expression) As UnaryExpression
參數
- expression
- Expression
要評估的 Expression。An Expression to evaluate.
傳回
UnaryExpression 的執行個體。An instance of UnaryExpression.
適用於
IsTrue(Expression, MethodInfo)
傳回運算式是否評估為 true。Returns whether the expression evaluates to true.
public:
static System::Linq::Expressions::UnaryExpression ^ IsTrue(System::Linq::Expressions::Expression ^ expression, System::Reflection::MethodInfo ^ method);
public static System.Linq.Expressions.UnaryExpression IsTrue (System.Linq.Expressions.Expression expression, System.Reflection.MethodInfo method);
public static System.Linq.Expressions.UnaryExpression IsTrue (System.Linq.Expressions.Expression expression, System.Reflection.MethodInfo? method);
static member IsTrue : System.Linq.Expressions.Expression * System.Reflection.MethodInfo -> System.Linq.Expressions.UnaryExpression
Public Shared Function IsTrue (expression As Expression, method As MethodInfo) As UnaryExpression
參數
- expression
- Expression
要評估的 Expression。An Expression to evaluate.
- method
- MethodInfo
表示實作方法的 MethodInfo。A MethodInfo that represents the implementing method.
傳回
UnaryExpression 的執行個體。An instance of UnaryExpression.