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
与当前视图状态相关联的工作流活动 ModelItem。The workflow activity ModelItem associated with the current view state.
返回
如果已移除视图状态,则为 true;否则为 false。true if the view state was removed; otherwise, false.