IVsDataObjectCollection.IndexOf メソッド (String)

指定した ID と一致するコレクションのデータ オブジェクトのインデックスを返します。

名前空間:  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
    型 : System.String
    必要なデータ オブジェクトを識別する区切り記号で区切られた識別子の一部を含む文字列。

戻り値

型 : System.Int32
データ オブジェクトが存在しない場合に整数値、0 以上、指定した ID と一致するコレクションのデータ オブジェクトのインデックス、または -1 を表します。

.NET Framework セキュリティ

  • 直前の呼び出し元に対する完全な信頼。このメンバーは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。

参照

関連項目

IVsDataObjectCollection インターフェイス

IndexOf オーバーロード

Microsoft.VisualStudio.Data.Services 名前空間