ConsumerConnectionPointCollection.Item[String] 属性

定义

获取指定位置处的集合项。Gets the collection item at the specified location.

重载

Item[Int32]

获取集合中整数值所指定的位置处的项。Gets the item in the collection at the location specified by the integer value.

Item[String]

获取具有指定 ID 属性的连接点。Gets the connection point with the specified ID property.

Item[Int32]

获取集合中整数值所指定的位置处的项。Gets the item in the collection at the location specified by the integer value.

public:
 property System::Web::UI::WebControls::WebParts::ConsumerConnectionPoint ^ default[int] { System::Web::UI::WebControls::WebParts::ConsumerConnectionPoint ^ get(int index); };
public System.Web.UI.WebControls.WebParts.ConsumerConnectionPoint this[int index] { get; }
member this.Item(int) : System.Web.UI.WebControls.WebParts.ConsumerConnectionPoint
Default Public ReadOnly Property Item(index As Integer) As ConsumerConnectionPoint

参数

index
Int32

集合中特定 ConsumerConnectionPoint 项的索引。The index of a particular ConsumerConnectionPoint item in the collection.

属性值

位于集合中指定索引处的 ConsumerConnectionPointA ConsumerConnectionPoint at the specified index in the collection.

注解

如果知道某个连接点的索引值, 则使用此方法从集合中检索该连接点。Use this method to retrieve a connection point from the collection if you know its index value.

Item[String]

获取具有指定 ID 属性的连接点。Gets the connection point with the specified ID property.

public:
 property System::Web::UI::WebControls::WebParts::ConsumerConnectionPoint ^ default[System::String ^] { System::Web::UI::WebControls::WebParts::ConsumerConnectionPoint ^ get(System::String ^ id); };
public System.Web.UI.WebControls.WebParts.ConsumerConnectionPoint this[string id] { get; }
member this.Item(string) : System.Web.UI.WebControls.WebParts.ConsumerConnectionPoint
Default Public ReadOnly Property Item(id As String) As ConsumerConnectionPoint

参数

id
String

表示要检索的连接点的连接点 ID 的字符串值。A string value representing the connection point ID of the connection point to be retrieved.

属性值

集合中 ID 等于 id 的值的第一个 ConsumerConnectionPointThe first ConsumerConnectionPoint in the collection whose ID matches the value of id.

注解

如果知道连接点的连接点 ID, 请使用此方法从集合中检索连接点。Use this method to retrieve a connection point from the collection if you know its connection point ID.

适用于