Design Pattern Framework 3.5
ViewStateProviderBase Class
Patterns-In-Action! Application ► ViewState ► ViewStateProviderBase
Defines the methods that viewstate providers should implement.

C# | Visual Basic |
public abstract class ViewStateProviderBase : ProviderBase
Public MustInherit Class ViewStateProviderBase _ Inherits ProviderBase

All Members | Constructors | Methods | Properties | ||
|
|
|
Icon | Member | Description |
---|---|---|
![]() |
ViewStateProviderBase()()() |
Initializes a new instance of the ViewStateProviderBase class
|
![]() |
Description |
Gets a brief, friendly description suitable for display in administrative tools or other user interfaces (UIs).
(Inherited from ProviderBase.) |
![]() |
Equals(Object) | (Inherited from Object.) |
![]() |
Finalize()()() |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) |
![]() |
GetHashCode()()() |
Serves as a hash function for a particular type.
(Inherited from Object.) |
![]() |
GetType()()() |
Gets the Type of the current instance.
(Inherited from Object.) |
![]() |
Initialize(String, NameValueCollection) |
Initializes the provider.
(Inherited from ProviderBase.) |
![]() |
LoadPageState(String) |
Loads any view or control state information for the web page.
|
![]() |
MemberwiseClone()()() |
Creates a shallow copy of the current Object.
(Inherited from Object.) |
![]() |
Name |
Gets the friendly name used to refer to the provider during configuration.
(Inherited from ProviderBase.) |
![]() |
SavePageState(String, Object) |
Saves any view or control state information for the web page.
|
![]() |
ToString()()() | (Inherited from Object.) |

Design Pattern: Microsoft's Provider Design Pattern. This pattern is
really is a blending of 3 GoF Design Patterns: Strategy, Factory, Singleton.
Strategy Pattern because the client has the option which viewstate provider Strategy to choose.
Singleton Pattern because GlobalViewStateSingleton is a Singleton that holds a list of all available viewstate providers.
Factory Pattern because viewstate providers are manufactured according to settings in a configuration file (web config).

Object | |||
![]() |
ProviderBase | ||
![]() |
ViewStateProviderBase | ||
![]() |
ViewStateProviderCache | ||
![]() |
ViewStateProviderGlobal | ||
![]() |
ViewStateProviderSession |