共用方式為


IVsDataObjectCollection.IndexOf 方法 (String)

傳回資料物件的索引中符合指定之識別項的集合中。

命名空間:  Microsoft.VisualStudio.Data.Services
組件:  Microsoft.VisualStudio.Data.Services (在 Microsoft.VisualStudio.Data.Services.dll 中)

語法

'宣告
Function IndexOf ( _
    identifier As String _
) As Integer
int IndexOf(
    string identifier
)
int IndexOf(
    String^ identifier
)
abstract IndexOf : 
        identifier:string -> int
function IndexOf(
    identifier : String
) : int

參數

  • identifier
    類型:String

    包含可唯一識別要求的資料物件的組件識別項的字串,以分隔符號字元。

傳回值

類型:Int32
整數值,大於或等於 0,代表資料物件的索引中符合指定之識別項的集合中則為-1,如果找不到資料物件。

.NET Framework 安全性

請參閱

參考

IVsDataObjectCollection 介面

IndexOf 多載

Microsoft.VisualStudio.Data.Services 命名空間