ViewStateService.RemoveViewState(ModelItem, String) 方法

定义

在派生类中实现时,移除由指定键表示的、与指定模型项相关联的视图状态。

public:
 abstract bool RemoveViewState(System::Activities::Presentation::Model::ModelItem ^ modelItem, System::String ^ key);
public abstract bool RemoveViewState (System.Activities.Presentation.Model.ModelItem modelItem, string key);
abstract member RemoveViewState : System.Activities.Presentation.Model.ModelItem * string -> bool
Public MustOverride Function RemoveViewState (modelItem As ModelItem, key As String) As Boolean

参数

modelItem
ModelItem

与当前视图状态相关联的工作流活动 ModelItem

key
String

标识所存储的视图状态项的 String

返回

如果已移除视图状态,则为 true;否则为 false

适用于