共用方式為


ProxyWebPartConnectionCollection.Item[] 屬性

定義

根據索引或唯一識別項,允許特定連接成員加入至集合或從集合擷取。

多載

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

整數,表示集合中成員的索引。

屬性值

位在集合中特定索引處的 WebPartConnection

備註

屬性 Item[] 可讓您使用代表集合中 ProxyWebPartConnectionCollection 專案序數位的索引編號來存取 WebPartConnection 集合中的 物件。

另請參閱

適用於

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 的字串。

屬性值

ID 符合 id 參數值的第一個 WebPartConnection。 如果找不到符合項目,會傳回 null

備註

這個屬性會 WebPartConnection 藉由執行不區分大小寫的比較,傳回具有指定識別碼的物件。

另請參閱

適用於