HttpApplicationStateWrapper.Item[] Propriedade

Definição

Obtém um objeto em uma coleção HttpApplicationState por nome ou índice.Gets an object in an HttpApplicationState collection by name or index.

Sobrecargas

Item[Int32]

Obtém um objeto de estado por índice.Gets a state object by index.

Item[String]

Obtém um objeto de estado por nome.Gets a state object by name.

Item[Int32]

Obtém um objeto de estado por índice.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

Parâmetros

index
Int32

O índice do objeto na coleção.The index of the object in the collection.

Valor da propriedade

Object

O objeto referenciado por index.The object referenced by index.

Exceções

index está fora do intervalo válido de índices para a coleção.index is outside the valid range of indexes for the collection.

Aplica-se a

Item[String]

Obtém um objeto de estado por nome.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

Parâmetros

name
String

O nome do objeto na coleção.The name of the object in the collection.

Valor da propriedade

Object

O objeto referenciado por name, se encontrado; caso contrário, null.The object referenced by name, if found; otherwise, null.

Aplica-se a