HttpApplicationStateBase.Item[String] 属性

定义

当在派生类中重写时,按名称或索引获取 HttpApplicationState 集合中的对象。When overridden in a derived class, gets an object in an HttpApplicationState collection by name or index.

重载

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

参数

index
Int32

集合中对象的索引。The index of the object in the collection.

属性值

index 所引用的对象。The object referenced by index.

异常

始终。Always.

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

参数

name
String

集合中的对象名。The name of the object in the collection.

属性值

name 所引用的对象。The object referenced by name.

异常

始终。Always.

适用于