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

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

ServiceCollection.Contains メソッド

指定した Service インスタンスが ServiceCollection のメンバかどうかを示す値を返します

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

使用例使用例
If myServiceDescription.Services.Contains(myService) Then
   Console.WriteLine( _
      "The mentioned service Exists at index {0} in the WSDL.",
 _
      myServiceDescription.Services.IndexOf(myService))
   Dim myServiceArray(myServiceDescription.Services.Count - 1)
 _
   As Service

   ' Copy the services into an array.
   myServiceDescription.Services.CopyTo(myServiceArray, 0)
   Dim myEnumerator As IEnumerator = myServiceArray.GetEnumerator()
   Console.WriteLine("The names of services in the array are")
   While myEnumerator.MoveNext()
      Dim myService1 As Service = CType(myEnumerator.Current,
 Service)
      Console.WriteLine(myService1.Name)
   End While
Else
   Console.WriteLine("Service does not exist in the WSDL.")
End If
if(myServiceDescription.Services.Contains(myService))
{
   Console.WriteLine(
      "The mentioned service exists at index {0} in the WSDL."
,
      myServiceDescription.Services.IndexOf(myService));
   Service[] myServiceArray =
      new Service[myServiceDescription.Services.Count];

   // Copy the services into an array.
   myServiceDescription.Services.CopyTo(myServiceArray,0);
   IEnumerator myEnumerator = myServiceArray.GetEnumerator();
   Console.WriteLine("The names of services in the array
 are");
   while(myEnumerator.MoveNext())
   {
      Service myService1 = (Service)myEnumerator.Current;
      Console.WriteLine(myService1.Name);
   }
}
else
{
   Console.WriteLine("Service does not exist in the WSDL."
 );
}
if ( myServiceDescription->Services->Contains( myService
 ) )
{
   Console::WriteLine( "The mentioned service exists at index {0} in
 the WSDL.", myServiceDescription->Services->IndexOf( myService ) );

   array<Service^>^myServiceArray = gcnew array<Service^>(myServiceDescription->Services->Count);

   // Copy the services into an array.
   myServiceDescription->Services->CopyTo( myServiceArray, 0 );
   IEnumerator^ myEnumerator = myServiceArray->GetEnumerator();
   Console::WriteLine( "The names of services in the array
 are" );
   while ( myEnumerator->MoveNext() )
   {
      Service^ myService1 = dynamic_cast<Service^>(myEnumerator->Current);
      Console::WriteLine( myService1->Name );
   }
}
else
{
   Console::WriteLine( "Service does not exist in the WSDL."
 );
}
if (myServiceDescription.get_Services().Contains(myService)) {
    Console.WriteLine("The mentioned service exists at index {0}"
        + "in the WSDL.", 
        System.Convert.ToString(myServiceDescription.get_Services().
        IndexOf(myService)));
    Service myServiceArray[] = new Service[myServiceDescription.
        get_Services().get_Count()];
    // Copy the services into an array.
    myServiceDescription.get_Services().CopyTo(myServiceArray, 0);
    IEnumerator myEnumerator = myServiceArray.GetEnumerator();
    Console.WriteLine("The names of services in the array
 are");
    while (myEnumerator.MoveNext()) {
        Service myService1 = (Service)(myEnumerator.get_Current());
        Console.WriteLine(myService1.get_Name());
    }
}
else {
    Console.WriteLine("Service does not exist in the WSDL.");
}
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ServiceCollection クラス
ServiceCollection メンバ
System.Web.Services.Description 名前空間



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

辞書ショートカット

すべての辞書の索引

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

   

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



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

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

©2024 GRAS Group, Inc.RSS