Share via


ICompiledExpressionRoot.CanExecuteExpression 方法

定义

指示 ICompiledExpressionRoot 是否可以执行查询。

public:
 bool CanExecuteExpression(System::String ^ expressionText, bool isReference, System::Collections::Generic::IList<System::Activities::LocationReference ^> ^ locations, [Runtime::InteropServices::Out] int % expressionId);
public bool CanExecuteExpression (string expressionText, bool isReference, System.Collections.Generic.IList<System.Activities.LocationReference> locations, out int expressionId);
abstract member CanExecuteExpression : string * bool * System.Collections.Generic.IList<System.Activities.LocationReference> * int -> bool
Public Function CanExecuteExpression (expressionText As String, isReference As Boolean, locations As IList(Of LocationReference), ByRef expressionId As Integer) As Boolean

参数

expressionText
String

使用的表达式文本。

isReference
Boolean

如果引用则为 true;否则为 false

locations
IList<LocationReference>

位置的集合。

expressionId
Int32

表达式标识符。

返回

如果 ICompiledExpressionRoot 可执行表达式,则为 true;否则为 false

适用于