StateBag Methods

 

Namespace:   System.Web.UI
Assembly:  System.Web (in System.Web.dll)

NameDescription
System_CAPS_pubmethodAdd(String^, Object^)

Adds a new StateItem object to the StateBag object. If the item already exists in the StateBag object, this method updates the value of the item.

System_CAPS_pubmethodClear()

Removes all items from the current StateBag object.

System_CAPS_pubmethodEquals(Object^)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetEnumerator()

Returns an enumerator that iterates over all the key/value pairs of the StateItem objects stored in the StateBag object.

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodIsItemDirty(String^)

Checks a StateItem object stored in the StateBag object to evaluate whether it has been modified since the call to Control::TrackViewState.

System_CAPS_pubmethodRemove(String^)

Removes the specified key/value pair from the StateBag object.

System_CAPS_pubmethodSetDirty(Boolean)

Sets the state of the StateBag object as well as the Dirty property of each of the StateItem objects contained by it.

System_CAPS_pubmethodSetItemDirty(String^, Boolean)

Sets the Dirty property for the specified StateItem object in the StateBag object.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

NameDescription
System_CAPS_pubmethodAsParallel()

Overloaded. Enables parallelization of a query.(Defined by ParallelEnumerable.)

System_CAPS_pubmethodAsQueryable()

Overloaded. Converts an IEnumerable to an IQueryable.(Defined by Queryable.)

System_CAPS_pubmethodCast<TResult>()

Casts the elements of an IEnumerable to the specified type.(Defined by Enumerable.)

System_CAPS_pubmethodOfType<TResult>()

Filters the elements of an IEnumerable based on a specified type.(Defined by Enumerable.)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodICollection::CopyTo(Array^, Int32)

For a description of this member, see ICollection::CopyTo.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIDictionary::Add(Object^, Object^)

For a description of this member, see IDictionary::Add.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIDictionary::Contains(Object^)

For a description of this member, see IDictionary::Contains.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIDictionary::Remove(Object^)

For a description of this member, see Remove.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIEnumerable::GetEnumerator()

For a description of this member, see IEnumerable::GetEnumerator.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIStateManager::LoadViewState(Object^)

Restores the previously saved view state of the StateBag object.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIStateManager::SaveViewState()

Saves the changes to the StateBag object since the time the page was posted back to the server.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIStateManager::TrackViewState()

Causes the StateBag object to track changes to its state so that it can be persisted across requests.

Return to top
Show: