Читати англійською Редагувати

Поділитися через


StateManagedCollection.SetDirty Method

Definition

Forces the entire StateManagedCollection collection to be serialized into view state.

C#
public void SetDirty();

Remarks

The SetDirty method forces the StateManagedCollection collection to be serialized completely (whereas the IStateManager.SaveViewState method saves only the change information). This is useful when a collection has changed in a significant way and change information is insufficient to recreate the object in memory from view state.

Applies to

Продукт Версії
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also