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

適用於