C# Class Subtext.TestLibrary.HttpSimulator.FakeHttpSessionState

Inheritance: System.Collections.Specialized.NameObjectCollectionBase, IHttpSessionState
Datei anzeigen Open project: Tboda/abSee

Private Properties

Property Type Description

Public Methods

Method Description
Abandon ( ) : void

Ends the current session.

Add ( string name, object value ) : void

Adds a new item to the session-state collection.

Clear ( ) : void

Clears all values from the session-state item collection.

CopyTo ( Array array, int index ) : void

Copies the collection of session-state item values to a one-dimensional array, starting at the specified index in the array.

Remove ( string name ) : void

Deletes an item from the session-state item collection.

RemoveAll ( ) : void

Clears all values from the session-state item collection.

RemoveAt ( int index ) : void

Deletes an item at a specified index from the session-state item collection.

this ( int index ) : object

Gets or sets a session-state item value by numerical index.

this ( string name ) : object

Gets or sets a session-state item value by name.

Method Details

Abandon() public method

Ends the current session.
public Abandon ( ) : void
return void

Add() public method

Adds a new item to the session-state collection.
public Add ( string name, object value ) : void
name string The name of the item to add to the session-state collection.
value object The value of the item to add to the session-state collection.
return void

Clear() public method

Clears all values from the session-state item collection.
public Clear ( ) : void
return void

CopyTo() public method

Copies the collection of session-state item values to a one-dimensional array, starting at the specified index in the array.
public CopyTo ( Array array, int index ) : void
array System.Array The that receives the session values.
index int The index in array where copying starts.
return void

Remove() public method

Deletes an item from the session-state item collection.
public Remove ( string name ) : void
name string The name of the item to delete from the session-state item collection.
return void

RemoveAll() public method

Clears all values from the session-state item collection.
public RemoveAll ( ) : void
return void

RemoveAt() public method

Deletes an item at a specified index from the session-state item collection.
public RemoveAt ( int index ) : void
index int The index of the item to remove from the session-state collection.
return void

this() public method

Gets or sets a session-state item value by numerical index.
public this ( int index ) : object
index int The numerical index of the session-state item value.
return object

this() public method

Gets or sets a session-state item value by name.
public this ( string name ) : object
name string The key name of the session-state item value.
return object