Επεξεργασία

Κοινή χρήση μέσω


HttpApplicationStateBase.Item[] Property

Definition

When overridden in a derived class, gets an object in an HttpApplicationState collection by name or index.

Overloads

Item[Int32]

When overridden in a derived class, gets a state object by index.

Item[String]

When overridden in a derived class, gets a state object by name.

Item[Int32]

When overridden in a derived class, gets a state object by index.

public:
 virtual property System::Object ^ default[int] { System::Object ^ get(int index); };
public virtual object this[int index] { get; }
member this.Item(int) : obj
Default Public Overridable 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

Applies to

Item[String]

When overridden in a derived class, 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 virtual object this[string name] { get; set; }
member this.Item(string) : obj with get, set
Default Public Overridable 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.

Exceptions

Applies to