共用方式為


ExpressionMorphHelper.TryMorphExpression 方法

定義

傳回運算式是否嘗試變形。

public:
 abstract bool TryMorphExpression(System::Activities::ActivityWithResult ^ expression, bool isLocationExpression, Type ^ newType, System::Activities::Presentation::EditingContext ^ context, [Runtime::InteropServices::Out] System::Activities::ActivityWithResult ^ % newExpression);
public abstract bool TryMorphExpression (System.Activities.ActivityWithResult expression, bool isLocationExpression, Type newType, System.Activities.Presentation.EditingContext context, out System.Activities.ActivityWithResult newExpression);
abstract member TryMorphExpression : System.Activities.ActivityWithResult * bool * Type * System.Activities.Presentation.EditingContext * ActivityWithResult -> bool
Public MustOverride Function TryMorphExpression (expression As ActivityWithResult, isLocationExpression As Boolean, newType As Type, context As EditingContext, ByRef newExpression As ActivityWithResult) As Boolean

參數

expression
ActivityWithResult

要變形的運算式。

isLocationExpression
Boolean

如果運算式是位置運算式,則為 true,否則為 false

newType
Type

運算式的新型別。

context
EditingContext

內容。

newExpression
ActivityWithResult

新的運算式。

傳回

Boolean

已變形的運算式。

適用於