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

Dim instance As CodeAttributeArgumentCollection Dim value As CodeAttributeArgument Dim returnValue As Boolean returnValue = instance.Contains(value)
戻り値
コレクションに指定したオブジェクトが格納されている場合は true。それ以外の場合は false。

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

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に収録されているすべての辞書からCodeAttributeArgumentCollection.Contains メソッドを検索する場合は、下記のリンクをクリックしてください。

- CodeAttributeArgumentCollection.Contains メソッドのページへのリンク