ConsumerConnectionPointCollection.IndexOf(ConsumerConnectionPoint) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
決定集合中指定 ConsumerConnectionPoint 物件的索引。
public:
int IndexOf(System::Web::UI::WebControls::WebParts::ConsumerConnectionPoint ^ connectionPoint);
public int IndexOf(System.Web.UI.WebControls.WebParts.ConsumerConnectionPoint connectionPoint);
member this.IndexOf : System.Web.UI.WebControls.WebParts.ConsumerConnectionPoint -> int
Public Function IndexOf (connectionPoint As ConsumerConnectionPoint) As Integer
參數
- connectionPoint
- ConsumerConnectionPoint
傳回
若找到,則為 首次出現connectionPointConsumerConnectionPointCollection的零基指數;否則為 -1。
備註
若指定的消費者連接點項目在集合中多次出現,則會回傳首次出現的索引。