WorkflowViewStateService.RemoveViewState(ModelItem, String) 方法

定义

移除由指定键表示的、与指定模型项相关联的视图状态。

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

参数

modelItem
ModelItem

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

key
String

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

返回

如果找到了与指定模型项相关联的视图状态并将其移除,则为 true;否则为 false

例外

modelItemkeynull

适用于