HttpApplicationStateWrapper.Item[] Property

Definition

Gets an object in an HttpApplicationState collection by name or index.

Overloads

Item[Int32]

Gets a state object by index.

Item[String]

Gets a state object by name.

Item[Int32]

Gets a state object by index.

public:
 virtual property System::Object ^ default[int] { System::Object ^ get(int index); };
public override object this[int index] { get; }
member this.Item(int) : obj
Default Public Overrides ReadOnly Property Item(index As Integer) As Object

Parameters

index
Int32

The index of the object in the collection.

Property Value

The object referenced by index.

Exceptions

index is outside the valid range of indexes for the collection.

Applies to

Item[String]

Gets a state object by name.

public:
 virtual property System::Object ^ default[System::String ^] { System::Object ^ get(System::String ^ name); void set(System::String ^ name, System::Object ^ value); };
public override object this[string name] { get; set; }
member this.Item(string) : obj with get, set
Default Public Overrides Property Item(name As String) As Object

Parameters

name
String

The name of the object in the collection.

Property Value

The object referenced by name, if found; otherwise, null.

Applies to