次の方法で共有


CodeTypeReferenceCollection.IndexOf メソッド

指定した CodeTypeReference がコレクション内に存在する場合は、コレクション内でのそのインデックスを取得します。

名前空間: System.CodeDom
アセンブリ: System (system.dll 内)

構文

'宣言
Public Function IndexOf ( _
    value As CodeTypeReference _
) As Integer
'使用
Dim instance As CodeTypeReferenceCollection
Dim value As CodeTypeReference
Dim returnValue As Integer

returnValue = instance.IndexOf(value)
public int IndexOf (
    CodeTypeReference value
)
public:
int IndexOf (
    CodeTypeReference^ value
)
public int IndexOf (
    CodeTypeReference value
)
public function IndexOf (
    value : CodeTypeReference
) : int

パラメータ

戻り値

指定した CodeTypeReference がコレクション内に存在する場合は、そのインデックス。それ以外の場合は -1。

プラットフォーム

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。

バージョン情報

.NET Framework

サポート対象 : 2.0、1.1、1.0

参照

関連項目

CodeTypeReferenceCollection クラス
CodeTypeReferenceCollection メンバ
System.CodeDom 名前空間
Contains