ViewStateService.RemoveViewState Method (ModelItem, String)

.NET Framework (current version)

The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

When implemented in a derived class, removes the view state represented by the specified key and associated with the specified model item.

Namespace:   System.Activities.Presentation.View
Assembly:  System.Activities.Presentation (in System.Activities.Presentation.dll)

public abstract bool RemoveViewState(
	ModelItem modelItem,
	string key


Type: System.Activities.Presentation.Model.ModelItem

The workflow activity ModelItem associated with the current view state.

Type: System.String

The String that identifies the view state item that is stored.

Return Value

Type: System.Boolean

true if the view state was removed; otherwise, false.

.NET Framework
Available since 4.0
Return to top