ICompiledExpressionRoot.CanExecuteExpression 方法

定義

指出 ICompiledExpressionRoot 是否能夠執行運算式。

C#
public bool CanExecuteExpression (string expressionText, bool isReference, System.Collections.Generic.IList<System.Activities.LocationReference> locations, out int expressionId);

參數

expressionText
String

所使用的運算式文字。

isReference
Boolean

如果是參考,則為 true,否則為 false

locations
IList<LocationReference>

位置的集合。

expressionId
Int32

運算式識別項。

傳回

如果 ICompiledExpressionRoot 可以執行運算式,則為 true,否則為 false

適用於

產品 版本
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1