WorkflowViewStateService.StoreViewStateWithUndo 方法

定义

记录由指定键表示的项的当前设置,使它可供撤消操作使用;然后存储由指定模型项的视图状态中的指定键表示的项。

public:
 override void StoreViewStateWithUndo(System::Activities::Presentation::Model::ModelItem ^ modelItem, System::String ^ key, System::Object ^ value);
public override void StoreViewStateWithUndo (System.Activities.Presentation.Model.ModelItem modelItem, string key, object value);
override this.StoreViewStateWithUndo : System.Activities.Presentation.Model.ModelItem * string * obj -> unit
Public Overrides Sub StoreViewStateWithUndo (modelItem As ModelItem, key As String, value As Object)

参数

modelItem
ModelItem

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

key
String

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

value
Object

要存储的 Object

例外

modelItemkeynull

适用于