ServiceDescriptionCollectionとは? わかりやすく解説

ServiceDescriptionCollection クラス

ServiceDescription クラスインスタンスコレクション表します。このクラス継承できません。

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

Public NotInheritable Class
 ServiceDescriptionCollection
    Inherits ServiceDescriptionBaseCollection
Dim instance As ServiceDescriptionCollection
public sealed class ServiceDescriptionCollection
 : ServiceDescriptionBaseCollection
public ref class ServiceDescriptionCollection
 sealed : public ServiceDescriptionBaseCollection
public final class ServiceDescriptionCollection
 extends ServiceDescriptionBaseCollection
public final class ServiceDescriptionCollection
 extends ServiceDescriptionBaseCollection
使用例使用例
Imports System
Imports System.Xml
Imports System.Web.Services.Description

Class MyServiceDescriptionCollection
   
   Public Shared Sub Main()
      Try
         ' Get ServiceDescription objects.
         Dim myServiceDescription1 As ServiceDescription
 = _
            ServiceDescription.Read("DataTypes_VB.wsdl")
         Dim myServiceDescription2 As ServiceDescription
 = _
            ServiceDescription.Read("MathService_VB.wsdl")

         ' Set the names of the ServiceDescriptions.
         myServiceDescription1.Name = "DataTypes"
         myServiceDescription2.Name = "MathService"
         
         ' Create a ServiceDescriptionCollection.
         Dim myServiceDescriptionCollection As
 _
            New ServiceDescriptionCollection()
         
         ' Add the ServiceDescriptions to the collection. 
         myServiceDescriptionCollection.Add(myServiceDescription1)
         myServiceDescriptionCollection.Add(myServiceDescription2)
         
         ' Display the elements of the collection using the Item property.
         Console.WriteLine("Elements in the collection: ")
         Dim i As Integer
         For i = 0 To myServiceDescriptionCollection.Count
 - 1
            Console.WriteLine(myServiceDescriptionCollection(i).Name)
         Next i

         ' Construct an XML qualified name.
         Dim myXmlQualifiedName As New
 XmlQualifiedName( _
            "MathServiceSoap", "http://tempuri2.org/")
         
         ' Get the Binding from the collection.
         Dim myBinding As Binding =  _
            myServiceDescriptionCollection.GetBinding(myXmlQualifiedName)
         
         Console.WriteLine("Binding found in collection with name:
 " &  _
            myBinding.ServiceDescription.Name)
      Catch e As Exception
         Console.WriteLine("The following exception was raised:
 {0}", _
                 e.Message.ToString())
      End Try
   End Sub 'Main
End Class 'MyServiceDescriptionCollection
using System;
using System.Xml;
using System.Web.Services.Description;

class MyServiceDescriptionCollection
{
   public static void Main()
   {
      try
      {
         // Get ServiceDescription objects.
         ServiceDescription myServiceDescription1 =
            ServiceDescription.Read("DataTypes_CS.wsdl");
         ServiceDescription myServiceDescription2 =
            ServiceDescription.Read("MathService_CS.wsdl");

         // Set the names of the ServiceDescriptions.
         myServiceDescription1.Name = "DataTypes";
         myServiceDescription2.Name = "MathService";

         // Create a ServiceDescriptionCollection.
         ServiceDescriptionCollection myServiceDescriptionCollection =
            new ServiceDescriptionCollection();

         // Add the ServiceDescriptions to the collection.
         myServiceDescriptionCollection.Add(myServiceDescription1);
         myServiceDescriptionCollection.Add(myServiceDescription2);

         // Display the elements of the collection using the indexer.
         Console.WriteLine("Elements in the collection: ");
         for(int i = 0; i < myServiceDescriptionCollection.Count;
 i++)
         {
            Console.WriteLine(myServiceDescriptionCollection[i].Name);
         }

         // Construct an XML qualified name.
         XmlQualifiedName myXmlQualifiedName =
            new XmlQualifiedName("MathServiceSoap",
 "http://tempuri2.org/");

         // Get the Binding from the collection.
         Binding myBinding =
            myServiceDescriptionCollection.GetBinding(myXmlQualifiedName);

         Console.WriteLine("Binding found in collection with
 name: " +
                           myBinding.ServiceDescription.Name);
      }
      catch(Exception e)
      {
         Console.WriteLine("The following exception was raised: {0}", e.Message);
      }
   }
}
#using <System.Web.Services.dll>
#using <System.Xml.dll>

using namespace System;
using namespace System::Xml;
using namespace System::Web::Services::Description;

int main()
{
   try
   {
      // Get ServiceDescription objects.
      ServiceDescription^ myServiceDescription1 = ServiceDescription::Read( "DataTypes_cpp.wsdl"
 );
      ServiceDescription^ myServiceDescription2 = ServiceDescription::Read( "MathService_cpp.wsdl"
 );

      // Set the names of the ServiceDescriptions.
      myServiceDescription1->Name = "DataTypes";
      myServiceDescription2->Name = "MathService";

      // Create a ServiceDescriptionCollection.
      ServiceDescriptionCollection^ myServiceDescriptionCollection = gcnew ServiceDescriptionCollection;

      // Add the ServiceDescriptions to the collection.
      myServiceDescriptionCollection->Add( myServiceDescription1 );
      myServiceDescriptionCollection->Add( myServiceDescription2 );

      // Display the elements of the collection using the Item property.
      Console::WriteLine( "Elements in the collection: "
 );
      for ( int i = 0; i < myServiceDescriptionCollection->Count;
 i++ )
         Console::WriteLine( myServiceDescriptionCollection[ i ]->Name );

      // Construct an XML qualified name.
      XmlQualifiedName^ myXmlQualifiedName = gcnew XmlQualifiedName( "MathServiceSoap","http://tempuri2.org/"
 );

      // Get the Binding from the collection.
      Binding^ myBinding = myServiceDescriptionCollection->GetBinding( myXmlQualifiedName
 );
      Console::WriteLine( "Binding found in collection with
 name: {0}", myBinding->ServiceDescription->Name );
   }
   catch ( Exception^ e ) 
   {
      Console::WriteLine( "The following exception was raised: {0}", e->Message
 );
   }
}
import System.*;
import System.Xml.*;
import System.Web.Services.Description.*;

class MyServiceDescriptionCollection
{
    public static void main(String[]
 args)
    {
        try {
            // Get ServiceDescription objects.
            ServiceDescription myServiceDescription1 = ServiceDescription.
                Read("DataTypes_JSL.wsdl");
            ServiceDescription myServiceDescription2 = ServiceDescription.
                Read("MathService_JSL.wsdl");
            // Set the names of the ServiceDescriptions.
            myServiceDescription1.set_Name("DataTypes");
            myServiceDescription2.set_Name("MathService");
            // Create a ServiceDescriptionCollection.
            ServiceDescriptionCollection myServiceDescriptionCollection = new
 
                ServiceDescriptionCollection();
            // Add the ServiceDescriptions to the collection.
            myServiceDescriptionCollection.Add(myServiceDescription1);
            myServiceDescriptionCollection.Add(myServiceDescription2);
            // Display the elements of the collection using the indexer.
            Console.WriteLine("Elements in the collection:
 ");
            for (int i = 0;i < myServiceDescriptionCollection.get_Count();i++)
 {
                Console.WriteLine(myServiceDescriptionCollection.get_Item(i).
                    get_Name());
            }
            // Construct an XML qualified name.
            XmlQualifiedName myXmlQualifiedName = new 
                XmlQualifiedName("MathServiceSoap", "http://tempuri2.org/");
            // Get the Binding from the collection.
            Binding myBinding = myServiceDescriptionCollection.
                GetBinding(myXmlQualifiedName);

            Console.WriteLine("Binding found in collection
 with name: " 
                + myBinding.get_ServiceDescription().get_Name());
        }
        catch (System.Exception e) {
            Console.WriteLine("The following exception was raised: {0}"
,
                e.get_Message());
        }
    } //main
} //MyServiceDescriptionCollection
継承階層継承階層
System.Object
   System.Collections.CollectionBase
     System.Web.Services.Description.ServiceDescriptionBaseCollection
      System.Web.Services.Description.ServiceDescriptionCollection
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ServiceDescriptionCollection メンバ
System.Web.Services.Description 名前空間

ServiceDescriptionCollection コンストラクタ

ServiceDescriptionCollection クラス新しインスタンス初期化します。

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

Dim instance As New ServiceDescriptionCollection
public ServiceDescriptionCollection ()
public:
ServiceDescriptionCollection ()
public ServiceDescriptionCollection ()
public function ServiceDescriptionCollection
 ()
使用例使用例
' Create the object of 'ServiceDescriptionCollection' class.
Dim myCollection As New
 ServiceDescriptionCollection()
' Add 'ServiceDescription' objects. 
myCollection.Add(myServiceDescription1)
myCollection.Add(myServiceDescription2)
// Create the object of 'ServiceDescriptionCollection' class.
ServiceDescriptionCollection myCollection = 
   new ServiceDescriptionCollection();
// Add 'ServiceDescription' objects. 
myCollection.Add(myServiceDescription1);
myCollection.Add(myServiceDescription2); 
// Create a ServiceDescriptionCollection.
ServiceDescriptionCollection^ myCollection = gcnew ServiceDescriptionCollection;

// Add ServiceDescriptions to the collection.
myCollection->Add( myServiceDescription1 );
myCollection->Add( myServiceDescription2 );
// Create the object of 'ServiceDescriptionCollection' class.
ServiceDescriptionCollection myCollection = new 
    ServiceDescriptionCollection();
// Add 'ServiceDescription' objects. 
myCollection.Add(myServiceDescription1);
myCollection.Add(myServiceDescription2);
// Create a ServiceDescriptionCollection.
ServiceDescriptionCollection myCollection = new 
    ServiceDescriptionCollection();
// Add the ServiceDescriptions to the collection. 
myCollection.Add(myServiceDescription1);
myCollection.Add(myServiceDescription2);
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ServiceDescriptionCollection クラス
ServiceDescriptionCollection メンバ
System.Web.Services.Description 名前空間

ServiceDescriptionCollection プロパティ


パブリック プロパティパブリック プロパティ

( プロテクト プロパティ参照)
  名前 説明
パブリック プロパティ Capacity  CollectionBase に格納できる要素の数を取得または設定します。 ( CollectionBase から継承されます。)
パブリック プロパティ Count  CollectionBase インスタンス格納されている要素の数を取得します。このプロパティオーバーライドできません。 ( CollectionBase から継承されます。)
パブリック プロパティ Item オーバーロードされます渡されパラメータによって指定された ServiceDescription インスタンス取得または設定します
プロテクト プロパティプロテクト プロパティ
  名前 説明
プロテクト プロパティ InnerList  CollectionBase インスタンス内の要素リスト格納する ArrayList を取得します。 ( CollectionBase から継承されます。)
プロテクト プロパティ List  CollectionBase インスタンス内の要素リスト格納する IList を取得します。 ( CollectionBase から継承されます。)
参照参照

関連項目

ServiceDescriptionCollection クラス
System.Web.Services.Description 名前空間

ServiceDescriptionCollection メソッド


パブリック メソッドパブリック メソッド

( プロテクト メソッド参照)
  名前 説明
パブリック メソッド Add 指定した ServiceDescription を ServiceDescriptionCollection末尾追加します
パブリック メソッド Clear  CollectionBase インスタンスかすべてのオブジェクト削除します。このメソッドオーバーライドできません。 ( CollectionBase から継承されます。)
パブリック メソッド Contains 指定した ServiceDescriptionコレクションメンバかどうかを示す値を返します
パブリック メソッド CopyTo ServiceDescription 型の 1 次元配列に、その配列内の指定した 0 から始まるインデックス開始位置として ServiceDescriptionCollection 全体コピーします
パブリック メソッド Equals  オーバーロードされます2 つObject インスタンス等しかどうか判断します。 ( Object から継承されます。)
パブリック メソッド GetBinding ServiceDescriptionCollection検索し、そのコレクション格納されている ServiceDescription インスタンスいずれかメンバである、指定した名前の Binding返します
パブリック メソッド GetEnumerator  CollectionBase インスタンス反復処理する列挙子を返します。 ( CollectionBase から継承されます。)
パブリック メソッド GetHashCode  特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用適してます。 ( Object から継承されます。)
パブリック メソッド GetMessage ServiceDescriptionCollection検索し、そのコレクション格納されている ServiceDescription インスタンスいずれかメンバである、指定した名前の Message返します
パブリック メソッド GetPortType ServiceDescriptionCollection検索し、そのコレクション格納されている ServiceDescription インスタンスいずれかメンバである、指定した名前の PortType を返します
パブリック メソッド GetService ServiceDescriptionCollection検索し、そのコレクション格納されている ServiceDescription インスタンスいずれかメンバである、指定した名前の Service返します
パブリック メソッド GetType  現在のインスタンスType取得します。 ( Object から継承されます。)
パブリック メソッド IndexOf 指定した ServiceDescription検索しコレクション内で最初に見つかった位置の 0 から始まるインデックス番号返します
パブリック メソッド Insert 指定した 0 から始まるインデックス番号にある ServiceDescriptionCollection に、指定した ServiceDescription インスタンス追加します
パブリック メソッド ReferenceEquals  指定した複数Object インスタンス同一かどうか判断します。 ( Object から継承されます。)
パブリック メソッド Remove コレクションから、最初に出現する指定した ServiceDescription削除します
パブリック メソッド RemoveAt  CollectionBase インスタンス指定したインデックスにある要素削除します。このメソッドオーバーライドできません。 ( CollectionBase から継承されます。)
パブリック メソッド ToString  現在の Object を表す String返します。 ( Object から継承されます。)
プロテクト メソッドプロテクト メソッド
  名前 説明
プロテクト メソッド Finalize  Objectガベージ コレクションにより収集される前に、その Objectリソース解放しその他のクリーンアップ操作実行できるようにします。 ( Object から継承されます。)
プロテクト メソッド MemberwiseClone  現在の Object簡易コピー作成します。 ( Object から継承されます。)
プロテクト メソッド OnClear  CollectionBase インスタンス内容消去するときに、追加カスタム プロセス実行します。 ( CollectionBase から継承されます。)
プロテクト メソッド OnClearComplete  CollectionBase インスタンス内容消去した後に、追加カスタム プロセス実行します。 ( CollectionBase から継承されます。)
プロテクト メソッド OnInsert  CollectionBase インスタンス新し要素挿入する前に追加カスタム プロセス実行します。 ( CollectionBase から継承されます。)
プロテクト メソッド OnInsertComplete  CollectionBase インスタンス新し要素挿入した後に、追加カスタム プロセス実行します。 ( CollectionBase から継承されます。)
プロテクト メソッド OnRemove  CollectionBase インスタンスか要素削除するときに、追加カスタム プロセス実行します。 ( CollectionBase から継承されます。)
プロテクト メソッド OnRemoveComplete  CollectionBase インスタンスか要素削除した後に、追加カスタム プロセス実行します。 ( CollectionBase から継承されます。)
プロテクト メソッド OnSet  CollectionBase インスタンスに値を設定する前に追加カスタム プロセス実行します。 ( CollectionBase から継承されます。)
プロテクト メソッド OnSetComplete  CollectionBase インスタンスに値を設定した後に、追加カスタム プロセス実行します。 ( CollectionBase から継承されます。)
プロテクト メソッド OnValidate  値を検証するときに、追加カスタム プロセス実行します。 ( CollectionBase から継承されます。)
参照参照

関連項目

ServiceDescriptionCollection クラス
System.Web.Services.Description 名前空間

ServiceDescriptionCollection メンバ

ServiceDescription クラスインスタンスコレクション表します。このクラス継承できません。

ServiceDescriptionCollection データ型公開されるメンバを以下の表に示します


パブリック コンストラクタパブリック コンストラクタ
  名前 説明
パブリック メソッド ServiceDescriptionCollection ServiceDescriptionCollection クラス新しインスタンス初期化します。
パブリック プロパティパブリック プロパティ
( プロテクト プロパティ参照)
  名前 説明
パブリック プロパティ Capacity  CollectionBase格納できる要素の数を取得または設定します。(CollectionBase から継承されます。)
パブリック プロパティ Count  CollectionBase インスタンス格納されている要素の数を取得します。このプロパティオーバーライドできません。(CollectionBase から継承されます。)
パブリック プロパティ Item オーバーロードされます渡されパラメータによって指定されServiceDescription インスタンス取得または設定します
プロテクト プロパティプロテクト プロパティ
  名前 説明
プロテクト プロパティ InnerList  CollectionBase インスタンス内の要素リスト格納する ArrayList を取得します。(CollectionBase から継承されます。)
プロテクト プロパティ List  CollectionBase インスタンス内の要素リスト格納する IList を取得します。(CollectionBase から継承されます。)
パブリック メソッドパブリック メソッド
( プロテクト メソッド参照)
  名前 説明
パブリック メソッド Add 指定した ServiceDescriptionServiceDescriptionCollection末尾追加します
パブリック メソッド Clear  CollectionBase インスタンスかすべてのオブジェクト削除します。このメソッドオーバーライドできません。 (CollectionBase から継承されます。)
パブリック メソッド Contains 指定した ServiceDescriptionコレクションメンバかどうかを示す値を返します
パブリック メソッド CopyTo ServiceDescription 型の 1 次元配列に、その配列内の指定した 0 から始まるインデックス開始位置として ServiceDescriptionCollection 全体コピーします
パブリック メソッド Equals  オーバーロードされます2 つObject インスタンス等しかどうか判断します。 (Object から継承されます。)
パブリック メソッド GetBinding ServiceDescriptionCollection検索し、そのコレクション格納されている ServiceDescription インスタンスいずれかメンバである、指定した名前の Binding返します
パブリック メソッド GetEnumerator  CollectionBase インスタンス反復処理する列挙子を返します。 (CollectionBase から継承されます。)
パブリック メソッド GetHashCode  特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用適してます。 (Object から継承されます。)
パブリック メソッド GetMessage ServiceDescriptionCollection検索し、そのコレクション格納されている ServiceDescription インスタンスいずれかメンバである、指定した名前の Message返します
パブリック メソッド GetPortType ServiceDescriptionCollection検索し、そのコレクション格納されている ServiceDescription インスタンスいずれかメンバである、指定した名前の PortType を返します
パブリック メソッド GetService ServiceDescriptionCollection検索し、そのコレクション格納されている ServiceDescription インスタンスいずれかメンバである、指定した名前の Service返します
パブリック メソッド GetType  現在のインスタンスType取得します。 (Object から継承されます。)
パブリック メソッド IndexOf 指定した ServiceDescription検索しコレクション内で最初に見つかった位置の 0 から始まるインデックス番号返します
パブリック メソッド Insert 指定した 0 から始まるインデックス番号にある ServiceDescriptionCollection に、指定した ServiceDescription インスタンス追加します
パブリック メソッド ReferenceEquals  指定した複数Object インスタンス同一かどうか判断します。 (Object から継承されます。)
パブリック メソッド Remove コレクションから、最初に出現する指定した ServiceDescription削除します
パブリック メソッド RemoveAt  CollectionBase インスタンス指定したインデックスにある要素削除します。このメソッドオーバーライドできません。 (CollectionBase から継承されます。)
パブリック メソッド ToString  現在の Object を表す String返します。 (Object から継承されます。)
プロテクト メソッドプロテクト メソッド
  名前 説明
プロテクト メソッド Finalize  Objectガベージ コレクションにより収集される前に、その Objectリソース解放しその他のクリーンアップ操作実行できるようにします。 (Object から継承されます。)
プロテクト メソッド MemberwiseClone  現在の Object簡易コピー作成します。 (Object から継承されます。)
プロテクト メソッド OnClear  CollectionBase インスタンス内容消去するときに、追加カスタム プロセス実行します。 (CollectionBase から継承されます。)
プロテクト メソッド OnClearComplete  CollectionBase インスタンス内容消去した後に、追加カスタム プロセス実行します。 (CollectionBase から継承されます。)
プロテクト メソッド OnInsert  CollectionBase インスタンス新し要素挿入する前に追加カスタム プロセス実行します。 (CollectionBase から継承されます。)
プロテクト メソッド OnInsertComplete  CollectionBase インスタンス新し要素挿入した後に、追加カスタム プロセス実行します。 (CollectionBase から継承されます。)
プロテクト メソッド OnRemove  CollectionBase インスタンスか要素削除するときに、追加カスタム プロセス実行します。 (CollectionBase から継承されます。)
プロテクト メソッド OnRemoveComplete  CollectionBase インスタンスか要素削除した後に、追加カスタム プロセス実行します。 (CollectionBase から継承されます。)
プロテクト メソッド OnSet  CollectionBase インスタンスに値を設定する前に追加カスタム プロセス実行します。 (CollectionBase から継承されます。)
プロテクト メソッド OnSetComplete  CollectionBase インスタンスに値を設定した後に、追加カスタム プロセス実行します。 (CollectionBase から継承されます。)
プロテクト メソッド OnValidate  値を検証するときに、追加カスタム プロセス実行します。 (CollectionBase から継承されます。)
参照参照

関連項目

ServiceDescriptionCollection クラス
System.Web.Services.Description 名前空間



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

辞書ショートカット

すべての辞書の索引

「ServiceDescriptionCollection」の関連用語

ServiceDescriptionCollectionのお隣キーワード
検索ランキング

   

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



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

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

©2025 GRAS Group, Inc.RSS