ViewStateService.RemoveViewState(ModelItem, String) 方法

定义

在派生类中实现时,移除由指定键表示的、与指定模型项相关联的视图状态。When implemented in a derived class, removes the view state represented by the specified key and associated with the specified model item.

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

与当前视图状态相关联的工作流活动 ModelItemThe workflow activity ModelItem associated with the current view state.

key
String

标识所存储的视图状态项的 StringThe String that identifies the view state item that is stored.

返回

Boolean

如果已移除视图状态,则为 true;否则为 falsetrue if the view state was removed; otherwise, false.

适用于