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

適用於