HttpApplicationStateBase.Item[] 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
當在衍生類別中被覆寫時,會以名稱或索引取得集合中的 HttpApplicationState 物件。
多載
| 名稱 | Description |
|---|---|
| Item[Int32] |
當在衍生類別中覆寫時,會透過索引獲得狀態物件。 |
| Item[String] |
當在派生類別中覆寫時,會以名稱獲得狀態物件。 |
Item[Int32]
當在衍生類別中覆寫時,會透過索引獲得狀態物件。
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
集合中物件的索引。
屬性值
由 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 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
集合中物件的名稱。
屬性值
由 name所參考的物件。