This documentation is archived and is not being maintained.

HttpSessionStateWrapper Members

Visual Studio 2008

Encapsulates the HTTP intrinsic object that provides access to session-state values, session-level settings, and lifetime management methods.

The HttpSessionStateWrapper type exposes the following members.

  NameDescription
Public method HttpSessionStateWrapper Initializes a new instance of the HttpSessionStateWrapper class.
Top

  NameDescription
Public method Abandon Cancels the current session. (Overrides HttpSessionStateBase::Abandon().)
Public method Add Adds an item to the session-state collection. (Overrides HttpSessionStateBase::Add(String, Object).)
Public method Clear Removes all keys and values from the session-state collection. (Overrides HttpSessionStateBase::Clear().)
Public method CopyTo Copies the collection of session-state values to a one-dimensional array, starting at the specified index in the array. (Overrides HttpSessionStateBase::CopyTo(Array, Int32).)
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetEnumerator Returns an enumerator that can be used to read all the session-state variable names in the current session. (Overrides HttpSessionStateBase::GetEnumerator().)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Remove Deletes an item from the session-state collection. (Overrides HttpSessionStateBase::Remove(String).)
Public method RemoveAll Removes all keys and values from the session-state collection. (Overrides HttpSessionStateBase::RemoveAll().)
Public method RemoveAt Deletes the item at the specified index from the session-state collection. (Overrides HttpSessionStateBase::RemoveAt(Int32).)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public property CodePage Gets or sets the character-set identifier for the current session. (Overrides HttpSessionStateBase::CodePage.)
Public property Contents Gets a reference to the current session-state object. (Overrides HttpSessionStateBase::Contents.)
Public property CookieMode Gets a value that indicates whether the application is configured for cookieless sessions. (Overrides HttpSessionStateBase::CookieMode.)
Public property Count Gets the number of items in the session-state collection. (Overrides HttpSessionStateBase::Count.)
Public property IsCookieless Gets a value that indicates whether the session ID is embedded in the URL. (Overrides HttpSessionStateBase::IsCookieless.)
Public property IsNewSession Gets a value that indicates whether the session was created during the current request. (Overrides HttpSessionStateBase::IsNewSession.)
Public property IsReadOnly Gets a value that indicates whether the session is read-only. (Overrides HttpSessionStateBase::IsReadOnly.)
Public property IsSynchronized Gets a value that indicates whether access to the collection of session-state values is synchronized (thread safe). (Overrides HttpSessionStateBase::IsSynchronized.)
Public property Item Overloaded. Gets or sets individual session values.
Public property Keys Gets a collection of the keys for all values that are stored in the session-state collection. (Overrides HttpSessionStateBase::Keys.)
Public property LCID Gets or sets the locale identifier (LCID) of the current session. (Overrides HttpSessionStateBase::LCID.)
Public property Mode Gets the current session-state mode. (Overrides HttpSessionStateBase::Mode.)
Public property SessionID Gets the unique identifier for the session. (Overrides HttpSessionStateBase::SessionID.)
Public property StaticObjects Gets a collection of objects that are declared by object elements that are marked as server controls and scoped to the current session in the application's Global.asax file. (Overrides HttpSessionStateBase::StaticObjects.)
Public property SyncRoot Gets an object that can be used to synchronize access to the collection of session-state values. (Overrides HttpSessionStateBase::SyncRoot.)
Public property Timeout Gets or sets the time, in minutes, that can elapse between requests before the session-state provider ends the session. (Overrides HttpSessionStateBase::Timeout.)
Top
Show: