ServiceDescriptionCollection.Contains メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > ServiceDescriptionCollection.Contains メソッドの意味・解説 

ServiceDescriptionCollection.Contains メソッド

指定した ServiceDescriptionコレクションメンバかどうかを示す値を返します

名前空間: System.Web.Services.Description
アセンブリ: System.Web.Services (system.web.services.dll 内)
構文構文

Public Function Contains ( _
    serviceDescription As ServiceDescription _
) As Boolean
Dim instance As ServiceDescriptionCollection
Dim serviceDescription As ServiceDescription
Dim returnValue As Boolean

returnValue = instance.Contains(serviceDescription)
public bool Contains (
    ServiceDescription serviceDescription
)
public:
bool Contains (
    ServiceDescription^ serviceDescription
)
public boolean Contains (
    ServiceDescription serviceDescription
)
public function Contains (
    serviceDescription : ServiceDescription
) : boolean

パラメータ

serviceDescription

コレクション メンバシップ確認する対象の 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.");
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ServiceDescriptionCollection クラス
ServiceDescriptionCollection メンバ
System.Web.Services.Description 名前空間


このページでは「.NET Framework クラス ライブラリ リファレンス」からServiceDescriptionCollection.Contains メソッドを検索した結果を表示しています。
Weblioに収録されているすべての辞書からServiceDescriptionCollection.Contains メソッドを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からServiceDescriptionCollection.Contains メソッド を検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

ServiceDescriptionCollection.Contains メソッドのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



ServiceDescriptionCollection.Contains メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2025 Microsoft.All rights reserved.

©2025 GRAS Group, Inc.RSS