DataSourceGroupCollection.IndexOf(DataSourceGroup) 方法

定義

傳回 DataSourceGroupDataSourceGroupCollection 的索引。

public:
 int IndexOf(System::ComponentModel::Design::Data::DataSourceGroup ^ value);
public int IndexOf (System.ComponentModel.Design.Data.DataSourceGroup value);
member this.IndexOf : System.ComponentModel.Design.Data.DataSourceGroup -> int
Public Function IndexOf (value As DataSourceGroup) As Integer

參數

value
DataSourceGroup

要尋找的 DataSourceGroup

傳回

如果可以找到 DataSourceGroupvalueDataSourceGroupCollection 的索引,否則為 -1。

適用於