HttpApplicationStateBase.Get 方法

定义

当在派生类中重写时,按名称或索引获取状态对象。When overridden in a derived class, gets a state object by name or index.

重载

Get(Int32)

当在派生类中重写时,按索引获取状态对象。When overridden in a derived class, gets a state object by index.

Get(String)

当在派生类中重写时,按名称获取状态对象。When overridden in a derived class, gets a state object by name.

Get(Int32)

当在派生类中重写时,按索引获取状态对象。When overridden in a derived class, gets a state object by index.

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

参数

index
Int32

要获取的应用程序状态对象的索引。The index of the application state object to get.

返回

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

异常

始终。Always.

Get(String)

当在派生类中重写时,按名称获取状态对象。When overridden in a derived class, gets a state object by name.

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

参数

name
String

要获取的对象的名称。The name of the object to get.

返回

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

异常

始终。Always.

适用于