WebPartDescriptionCollection.IndexOf(WebPartDescription) 方法

定義

傳回集合特定成員的位置。

public:
 int IndexOf(System::Web::UI::WebControls::WebParts::WebPartDescription ^ value);
public int IndexOf (System.Web.UI.WebControls.WebParts.WebPartDescription value);
member this.IndexOf : System.Web.UI.WebControls.WebParts.WebPartDescription -> int
Public Function IndexOf (value As WebPartDescription) As Integer

參數

value
WebPartDescription

WebPartDescription,為集合成員。

傳回

整數,表示集合中特定物件的位置。

備註

如果您有多個WebPartDescription物件,而且需要知道一個物件相對於其他對象的序數位置,此方法IndexOf會很有用。

適用於

另請參閱