CodeExpressionCollection.IndexOf メソッド
アセンブリ: System (system.dll 内)

Dim instance As CodeExpressionCollection Dim value As CodeExpression Dim returnValue As Integer returnValue = instance.IndexOf(value)
戻り値
見つかった場合はコレクション内での指定したオブジェクトのインデックス。それ以外の場合は -1。

' Tests for the presence of a CodeExpression in the ' collection, and retrieves its index if it is found. Dim testComment = New CodePrimitiveExpression(True) Dim itemIndex As Integer = -1 If collection.Contains(testComment) Then itemIndex = collection.IndexOf(testComment) End If
// Tests for the presence of a CodeExpression in the // collection, and retrieves its index if it is found. CodeExpression testComment = new CodePrimitiveExpression(true); int itemIndex = -1; if( collection.Contains( testComment ) ) itemIndex = collection.IndexOf( testComment );
// Tests for the presence of a CodeExpression in the // collection, and retrieves its index if it is found. CodeExpression^ testComment = gcnew CodePrimitiveExpression( true ); int itemIndex = -1; if ( collection->Contains( testComment ) ) itemIndex = collection->IndexOf( testComment );
// Tests for the presence of a CodeExpression in the // collection, and retrieves its index if it is found. CodeExpression testComment = new CodePrimitiveExpression(System. Convert.ToString(true)); int itemIndex = -1; if (collection.Contains(testComment)) { itemIndex = collection.IndexOf(testComment); }

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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からCodeExpressionCollection.IndexOf メソッドを検索する場合は、下記のリンクをクリックしてください。

- CodeExpressionCollection.IndexOf メソッドのページへのリンク