ExpressionMorphHelper.TryMorphExpression 方法

定义

返回表达式的尝试此时是否为 morph。

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

变形的表达式。

适用于