HttpSessionStateWrapper Class
TOC
Collapse the table of content
Expand the table of content

HttpSessionStateWrapper Class

.NET Framework (current version)
 

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

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

System.Object
  System.Web.HttpSessionStateBase
    System.Web.HttpSessionStateWrapper

public class HttpSessionStateWrapper : HttpSessionStateBase

NameDescription
System_CAPS_pubmethodHttpSessionStateWrapper(HttpSessionState)

Initializes a new instance of the HttpSessionStateWrapper class.

NameDescription
System_CAPS_pubpropertyCodePage

Gets or sets the character-set identifier for the current session.(Overrides HttpSessionStateBase.CodePage.)

System_CAPS_pubpropertyContents

Gets a reference to the current session-state object.(Overrides HttpSessionStateBase.Contents.)

System_CAPS_pubpropertyCookieMode

Gets a value that indicates whether the application is configured for cookieless sessions.(Overrides HttpSessionStateBase.CookieMode.)

System_CAPS_pubpropertyCount

Gets the number of items in the session-state collection.(Overrides HttpSessionStateBase.Count.)

System_CAPS_pubpropertyIsCookieless

Gets a value that indicates whether the session ID is embedded in the URL.(Overrides HttpSessionStateBase.IsCookieless.)

System_CAPS_pubpropertyIsNewSession

Gets a value that indicates whether the session was created during the current request.(Overrides HttpSessionStateBase.IsNewSession.)

System_CAPS_pubpropertyIsReadOnly

Gets a value that indicates whether the session is read-only.(Overrides HttpSessionStateBase.IsReadOnly.)

System_CAPS_pubpropertyIsSynchronized

Gets a value that indicates whether access to the collection of session-state values is synchronized (thread safe).(Overrides HttpSessionStateBase.IsSynchronized.)

System_CAPS_pubpropertyItem[Int32]

Gets or sets a session value by using the specified index.(Overrides HttpSessionStateBase.Item[Int32].)

System_CAPS_pubpropertyItem[String]

Gets or sets a session value by using the specified name.(Overrides HttpSessionStateBase.Item[String].)

System_CAPS_pubpropertyKeys

Gets a collection of the keys for all values that are stored in the session-state collection.(Overrides HttpSessionStateBase.Keys.)

System_CAPS_pubpropertyLCID

Gets or sets the locale identifier (LCID) of the current session.(Overrides HttpSessionStateBase.LCID.)

System_CAPS_pubpropertyMode

Gets the current session-state mode.(Overrides HttpSessionStateBase.Mode.)

System_CAPS_pubpropertySessionID

Gets the unique identifier for the session.(Overrides HttpSessionStateBase.SessionID.)

System_CAPS_pubpropertyStaticObjects

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.)

System_CAPS_pubpropertySyncRoot

Gets an object that can be used to synchronize access to the collection of session-state values.(Overrides HttpSessionStateBase.SyncRoot.)

System_CAPS_pubpropertyTimeout

Gets or sets the time, in minutes, that can elapse between requests before the session-state provider ends the session.(Overrides HttpSessionStateBase.Timeout.)

NameDescription
System_CAPS_pubmethodAbandon()

Cancels the current session.(Overrides HttpSessionStateBase.Abandon().)

System_CAPS_pubmethodAdd(String, Object)

Adds an item to the session-state collection.(Overrides HttpSessionStateBase.Add(String, Object).)

System_CAPS_pubmethodClear()

Removes all keys and values from the session-state collection.(Overrides HttpSessionStateBase.Clear().)

System_CAPS_pubmethodCopyTo(Array, Int32)

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).)

System_CAPS_pubmethodEquals(Object)

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

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetEnumerator()

Returns an enumerator that can be used to read all the session-state variable names in the current session.(Overrides HttpSessionStateBase.GetEnumerator().)

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_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodRemove(String)

Deletes an item from the session-state collection.(Overrides HttpSessionStateBase.Remove(String).)

System_CAPS_pubmethodRemoveAll()

Removes all keys and values from the session-state collection.(Overrides HttpSessionStateBase.RemoveAll().)

System_CAPS_pubmethodRemoveAt(Int32)

Deletes the item at the specified index from the session-state collection.(Overrides HttpSessionStateBase.RemoveAt(Int32).)

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.)

The HttpSessionStateWrapper class derives from the HttpSessionStateBase class and serves as a wrapper for the HttpSessionState class. This class exposes the functionality of the HttpSessionState class and exposes the HttpSessionStateBase type. The HttpSessionStateBase class lets you replace the original implementation of the HttpSessionState class in your application with a custom implementation, such as when you perform unit testing outside the ASP.NET pipeline.

.NET Framework
Available since 3.5

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft