CompilerErrorCollection.Contains メソッド
アセンブリ: System (system.dll 内)
 構文
構文Dim instance As CompilerErrorCollection Dim value As CompilerError Dim returnValue As Boolean returnValue = instance.Contains(value)
戻り値
CompilerError がコレクションに格納されている場合は true。それ以外の場合は false。
 使用例
使用例' Tests for the presence of a CompilerError in the ' collection, and retrieves its index if it is found. Dim testError As New CompilerError("Testfile.cs", 5, 10, "CS0001", "Example error text") Dim itemIndex As Integer = -1 If collection.Contains(testError) Then itemIndex = collection.IndexOf(testError) End If
// Tests for the presence of a CompilerError in the // collection, and retrieves its index if it is found. CompilerError testError = new CompilerError("Testfile.cs", 5, 10, "CS0001", "Example error text"); int itemIndex = -1; if( collection.Contains( testError ) ) itemIndex = collection.IndexOf( testError );
// Tests for the presence of a CompilerError in the // collection, and retrieves its index if it is found. CompilerError^ testError = gcnew CompilerError( "Testfile.cs",5,10,"CS0001","Example error text" ); int itemIndex = -1; if ( collection->Contains( testError ) ) itemIndex = collection->IndexOf( testError );
// Tests for the presence of a CompilerError in the // collection, and retrieves its index if it is found. CompilerError testError = new CompilerError("Testfile.JSL", 5, 10, "JSL0001", "Example error text"); int itemIndex = -1; if (collection.Contains(testError)) { itemIndex = collection.IndexOf(testError); }
 プラットフォーム
プラットフォーム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に収録されているすべての辞書からCompilerErrorCollection.Contains メソッドを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からCompilerErrorCollection.Contains メソッド
                    を検索
                     全ての辞書からCompilerErrorCollection.Contains メソッド
                    を検索
                - CompilerErrorCollection.Contains メソッドのページへのリンク

 
                             
                    


