HttpApplicationStateWrapper.Get 方法

定义

按名称或索引获取状态对象。

重载

名称 说明
Get(Int32)

按索引返回状态对象。

Get(String)

按名称返回状态对象。

Get(Int32)

按索引返回状态对象。

public:
 override System::Object ^ Get(int index);
public override object Get(int index);
override this.Get : int -> obj
Public Overrides Function Get (index As Integer) As Object

参数

index
Int32

要获取的应用程序状态对象的索引。

返回

index. 引用的对象

例外

index 超出集合的有效索引范围。

适用于

Get(String)

按名称返回状态对象。

public:
 override System::Object ^ Get(System::String ^ name);
public override object Get(string name);
override this.Get : string -> obj
Public Overrides Function Get (name As String) As Object

参数

name
String

要获取的对象的名称。

返回

如果找到,则为引用 name的对象;否则为 null

适用于