HttpApplicationStateWrapper.Item[] 屬性

定義

透過名稱或索引取得集合中的 HttpApplicationState 物件。

多載

名稱 Description
Item[Int32]

透過索引取得狀態物件。

Item[String]

會依名稱取得一個狀態物件。

Item[Int32]

透過索引取得狀態物件。

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

參數

index
Int32

集合中物件的索引。

屬性值

index所參考的物件。

例外狀況

index 超出該集合有效索引範圍。

適用於

Item[String]

會依名稱取得一個狀態物件。

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

參數

name
String

集合中物件的名稱。

屬性值

若找到, name則為 所參考的物件;否則,為 null

適用於