ProxyWebPartConnectionCollection.Item[] 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
允許根據索引或唯一識別碼,新增或從集合中檢索特定連線成員。
多載
| 名稱 | Description |
|---|---|
| Item[Int32] |
根據索引號在集合中的位置,取得或設定該項目在集合中的位置。 |
| Item[String] |
根據唯一識別碼回傳集合中的特定成員。 |
Item[Int32]
根據索引號在集合中的位置,取得或設定該項目在集合中的位置。
public:
property System::Web::UI::WebControls::WebParts::WebPartConnection ^ default[int] { System::Web::UI::WebControls::WebParts::WebPartConnection ^ get(int index); void set(int index, System::Web::UI::WebControls::WebParts::WebPartConnection ^ value); };
public System.Web.UI.WebControls.WebParts.WebPartConnection this[int index] { get; set; }
member this.Item(int) : System.Web.UI.WebControls.WebParts.WebPartConnection with get, set
Default Public Property Item(index As Integer) As WebPartConnection
參數
- index
- Int32
一個整數,表示集合成員的索引。
屬性值
A WebPartConnection 位於集合中指定的索引。
備註
這個 Item[] 屬性讓你能透過索引號(代表該物件在集合中的序數位置)來存取 WebPartConnection 該物件 ProxyWebPartConnectionCollection 。
另請參閱
適用於
Item[String]
根據唯一識別碼回傳集合中的特定成員。
public:
property System::Web::UI::WebControls::WebParts::WebPartConnection ^ default[System::String ^] { System::Web::UI::WebControls::WebParts::WebPartConnection ^ get(System::String ^ id); };
public System.Web.UI.WebControls.WebParts.WebPartConnection this[string id] { get; }
member this.Item(string) : System.Web.UI.WebControls.WebParts.WebPartConnection
Default Public ReadOnly Property Item(id As String) As WebPartConnection
參數
- id
- String
包含集合中特定連線 ID 的字串。
屬性值
第一個 WebPartConnection ID 與參數值相符 id 的。 若未找到匹配,則退貨 null 。
備註
此屬性透過不區分大小寫的比較,回傳 WebPartConnection 具有指定 ID 的物件。