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

Collection of RadStatePersisterManager settings

Definition

Constructors

PersistenceSettingsCollection default constructor

C#
public PersistenceSettingsCollection()

Properties

PersistenceSetting indexer

C#
public PersistenceSetting this[int index] { get; set; }
Parameters:indexint

Index of the PersistenceSetting in the collection

Methods

Adds a PersistenceSetting to the end of the PersistenceSettingsCollection

C#
public int Add(PersistenceSetting setting)
Parameters:settingPersistenceSetting

PersistenceSetting object

Returns:

int

PersistenceSetting index at which the PersistenceSetting has been added

Adds a PersistenceSetting to the end of the PersistenceSettingsCollection

C#
public void AddSetting(Control controlToPersist)
Parameters:controlToPersistControl

Type of the control to persist

Adds a PersistenceSetting to the end of the PersistenceSettingsCollection

C#
public void AddSetting(string controlID)
Parameters:controlIDstring

The ID of the control to persist

Adds a PersistenceSetting to the end of the PersistenceSettingsCollection

C#
public void AddSetting(Type controlType)
Parameters:controlTypeType

Type of the controls to persist

Determines whether the PersistenceSettingsCollection contains a specific PersistenceSetting

C#
public bool Contains(PersistenceSetting setting)
Parameters:settingPersistenceSetting

PersistenceSetting object

Returns:

bool

Returns true if the PersistenceSettingsCollection contains the specified PersistenceSetting; otherwise, false

Searches for the specified PersistenceSetting and returns the zero-based index of the first occurrence within the entire PersistenceSettingsCollection

C#
public int IndexOf(PersistenceSetting setting)
Parameters:settingPersistenceSetting

PersistenceSetting object

Returns:

int

The zero-based index of the first occurrence of PersistenceSetting within the entire PersistenceSettingsCollection, if found; otherwise, -1

Inserts a PersistenceSetting into the PersistenceSettingsCollection at the specified index

C#
public void Insert(int index, PersistenceSetting setting)
Parameters:indexint

The zero-based index at which the PersistenceSetting should be inserted

settingPersistenceSetting

PersistenceSetting object

Removes the first occurrence of a specific PersistenceSetting from the PersistenceSettingsCollection

C#
public void Remove(PersistenceSetting setting)
Parameters:settingPersistenceSetting

PersistenceSetting object