New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

StateStorageProvider interface that should be implemented by the different storage providers

Definition

Namespace:Telerik.Web.UI.PersistenceFramework

Assembly:Telerik.Web.UI.dll

Syntax:

C#
public interface IStateStorageProvider

Derived Classes: AppDataStorageProviderBaseStateStorageProviderCookieStateStorageProvider

Methods

Retrieves stored state from the repository

C#
string LoadStateFromStorage(string key)
Parameters:keystring

The key identifier for the stored state

Returns:

string

State value corresponding to the provided key

Save the provided serialized state to the repository

C#
void SaveStateToStorage(string key, string serializedState)
Parameters:keystring

The key identifier for the stored state

serializedStatestring

State's serialized value that should be stored in the repository