ICompiledExpressionRoot.CanExecuteExpression 方法
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
指出 ICompiledExpressionRoot 是否能夠執行運算式。
public:
bool CanExecuteExpression(System::String ^ expressionText, bool isReference, System::Collections::Generic::IList<System::Activities::LocationReference ^> ^ locations, [Runtime::InteropServices::Out] int % expressionId);
C#
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
。
產品 | 版本 |
---|---|
.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 |