IVsDataExplorerChildNodeCollection.IndexOf 方法 (String, array<Object[])
擷取連接節點的索引具有指定名稱的型別名稱和識別項對應。
命名空間: Microsoft.VisualStudio.Data.Services
組件: Microsoft.VisualStudio.Data.Services (在 Microsoft.VisualStudio.Data.Services.dll 中)
語法
'宣告
Function IndexOf ( _
typeName As String, _
identifier As Object() _
) As Integer
int IndexOf(
string typeName,
Object[] identifier
)
int IndexOf(
String^ typeName,
array<Object^>^ identifier
)
abstract IndexOf :
typeName:string *
identifier:Object[] -> int
function IndexOf(
typeName : String,
identifier : Object[]
) : int
參數
typeName
類型:String要求的資料物件的型別名稱。
identifier
類型:array<Object[]陣列可唯一識別要求的資料物件的識別組件。
傳回值
類型:Int32
連接節點的索引在伺服器總管中,則為,如果有找到,則為,否則為-1。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。