ServiceDescriptionCollection.Contains メソッド
アセンブリ: System.Web.Services (system.web.services.dll 内)

Dim instance As ServiceDescriptionCollection Dim serviceDescription As ServiceDescription Dim returnValue As Boolean returnValue = instance.Contains(serviceDescription)
戻り値
serviceDescription パラメータが ServiceDescriptionCollection のメンバである場合は true。それ以外の場合は false。

' Check for 'ServiceDescription' object in the collection. If myCollection.Contains(myServiceDescription2) Then ' Get the index of 'ServiceDescription' object. Dim myIndex As Integer = myCollection.IndexOf(myServiceDescription2) ' Remove 'ServiceDescription' object from the collection. myCollection.Remove(myServiceDescription2) Console.WriteLine("Element at index {0} is removed ", myIndex.ToString()) Else Console.WriteLine("Element not found.") End If
// Check for 'ServiceDescription' object in the collection. if (myCollection.Contains(myServiceDescription2)) { // Get the index of 'ServiceDescription' object. int myIndex = myCollection.IndexOf(myServiceDescription2); // Remove 'ServiceDescription' object from the collection. myCollection.Remove(myServiceDescription2); Console.WriteLine("Element at index {0} is removed ", myIndex); } else { Console.WriteLine("Element not found."); }
// Check for 'ServiceDescription' object in the collection. if (myCollection.Contains(myServiceDescription2)) { // Get the index of 'ServiceDescription' object. int myIndex = myCollection.IndexOf(myServiceDescription2); // Remove 'ServiceDescription' object from the collection. myCollection.Remove(myServiceDescription2); Console.WriteLine("Element at index {0} is removed ", System.Convert.ToString(myIndex)); } else { Console.WriteLine("Element not found."); }
// Check for a ServiceDescription in the collection. if (myCollection.Contains(myServiceDescription2)) { // Get the index of a ServiceDescription. int myIndex = myCollection.IndexOf(myServiceDescription2); // Remove a ServiceDescription from the collection. myCollection.Remove(myServiceDescription2); Console.WriteLine("Element at index {0} is removed.", System.Convert.ToString(myIndex)); } else { Console.WriteLine("Element not found."); }

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

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