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

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

ServiceDescriptionFormatExtensionCollection クラス

XML Web サービスで使用される機能拡張要素のコレクションを表します。このクラスは継承できません。

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

Public NotInheritable Class
 ServiceDescriptionFormatExtensionCollection
    Inherits ServiceDescriptionBaseCollection
Dim instance As ServiceDescriptionFormatExtensionCollection
public sealed class ServiceDescriptionFormatExtensionCollection
 : ServiceDescriptionBaseCollection
public ref class ServiceDescriptionFormatExtensionCollection
 sealed : public ServiceDescriptionBaseCollection
public final class ServiceDescriptionFormatExtensionCollection
 extends ServiceDescriptionBaseCollection
public final class ServiceDescriptionFormatExtensionCollection
 extends ServiceDescriptionBaseCollection
解説解説

このコレクションには、ServiceDescriptionFormatExtension の派生クラスのインスタンス、または XmlElement クラスのインスタンスのいずれかを含めることができます。派生クラスでは、ServiceDescriptionFormatExtension クラスを使用して、Web サービス記述言語 (WSDL: Web Services Description Language) の仕様で定義された機能拡張要素を定義できます。作成する機能拡張の要素の種類があらかじめわかっている場合は、定義されたこれらの要素をServiceDescriptionFormatExtensionCollection で使用してください。要素の書式があらかじめわからない場合は、XmlElement を使用してください。

使用例使用例
Imports System
Imports System.Web.Services.Description
Imports System.Collections


Class MyFormatExtension
   Inherits ServiceDescriptionFormatExtension
   
   Public Sub New()
      ' Set the properties.
      Me.Handled = True
      Me.Required = True
   End Sub 'New
End Class 'MyFormatExtension

Class myCollectionSample
   
   Shared Sub Main()
      Try
         Dim myServiceDescription As ServiceDescription
 = _
                 ServiceDescription.Read("Sample_VB.wsdl")
         Dim myCollection As New
 ServiceDescriptionFormatExtensionCollection(myServiceDescription)
         Dim mySoapBinding1 As New
 SoapBinding()
         Dim mySoapBinding2 As New
 SoapBinding()
         Dim mySoapAddressBinding As New
 SoapAddressBinding()
         Dim myFormatExtensionObject As New
 MyFormatExtension()
         ' Add elements to collection.
         myCollection.Add(mySoapBinding1)
         myCollection.Add(mySoapAddressBinding)
         myCollection.Add(mySoapBinding2)
         myCollection.Add(myFormatExtensionObject)
         Console.WriteLine("Collection contains following types
 of elements: ")
         ' Display the 'Type' of the elements in collection.
         Dim i As Integer
         For i = 0 To myCollection.Count -
 1
            Console.WriteLine(myCollection(i).GetType().ToString())
         Next i
         ' Check element of type 'SoapAddressBinding' in collection.
         Dim myObj As Object
 = myCollection.Find(mySoapAddressBinding.GetType())
         If myObj Is Nothing
 Then
            Console.WriteLine("Element of type '{0}'
 not found in collection.", _
                 mySoapAddressBinding.GetType().ToString())
         Else
            Console.WriteLine("Element of type '{0}'
 found in collection.", _
                 mySoapAddressBinding.GetType().ToString())
         End If
         ' Check all elements of type 'SoapBinding' in collection.
         Dim myObjectArray1(myCollection.Count -1 ) As
 Object
         myObjectArray1 = myCollection.FindAll(mySoapBinding1.GetType())
         Dim myNumberOfElements As Integer
 = 0
         Dim myIEnumerator As IEnumerator =
 myObjectArray1.GetEnumerator()
         
         ' Calculate number of elements of type 'SoapBinding'.
         While myIEnumerator.MoveNext()
            If mySoapBinding1.GetType() Is
  myIEnumerator.Current.GetType() Then
               myNumberOfElements += 1
            End If
         End While
         Console.WriteLine("Collection contains {0} objects of
 type '{1}'.", _
                 myNumberOfElements.ToString(), mySoapBinding1.GetType().ToString())
         ' Check 'IsHandled' status for 'myFormatExtensionObject' object
 in collection.
         Console.WriteLine("'IsHandled' status for {0} object is
 {1}.", _
                 myFormatExtensionObject.ToString(), _
                 myCollection.IsHandled(myFormatExtensionObject).ToString())
         ' Check 'IsRequired' status for 'myFormatExtensionObject' object
 in collection.
         Console.WriteLine("'IsRequired' status for {0} object
 is {1}.", _
                 myFormatExtensionObject.ToString(), _
                 myCollection.IsRequired(myFormatExtensionObject).ToString())
         ' Copy elements of collection to an Object array.
         Dim myObjectArray2(myCollection.Count -1 ) As
 Object
         myCollection.CopyTo(myObjectArray2, 0)
         Console.WriteLine("Collection elements are copied to
 an object array.")
         ' Check for 'myFormatExtension' object in collection.
         If myCollection.Contains(myFormatExtensionObject) Then
            ' Get index of a 'myFormatExtension' object in collection.
            Console.WriteLine("Index of 'myFormatExtensionObject'
 is " + _
                 "{0} in collection.", myCollection.IndexOf(myFormatExtensionObject).ToString())
            ' Remove 'myFormatExtensionObject' element from collection.
            myCollection.Remove(myFormatExtensionObject)
            Console.WriteLine("'myFormatExtensionObject' is removed"
 + _
                 " from collection.")
         End If
         ' Insert 'MyFormatExtension' object.
         myCollection.Insert(0, myFormatExtensionObject)
         Console.WriteLine("'myFormatExtensionObject' is inserted
 to collection.")
      Catch e As Exception
         Console.WriteLine("The following exception was raised:
 {0}", e.Message.ToString())
      End Try
   End Sub 'Main
End Class 'myCollectionSample
using System;
using System.Web.Services.Description;
using System.Collections;

class MyFormatExtension : ServiceDescriptionFormatExtension 
{
   public MyFormatExtension()
   {
      // Set the properties.
      this.Handled  = true;
      this.Required = true;
   }
}
class myCollectionSample
{
   static void Main()
   {
      try
      {
         ServiceDescription myServiceDescription = 
            ServiceDescription.Read("Sample_CS.wsdl");
         ServiceDescriptionFormatExtensionCollection  myCollection = 
            new ServiceDescriptionFormatExtensionCollection(myServiceDescription);
         SoapBinding mySoapBinding1 = new SoapBinding();
         SoapBinding mySoapBinding2 = new SoapBinding();
         SoapAddressBinding mySoapAddressBinding = new SoapAddressBinding();
         MyFormatExtension  myFormatExtensionObject = new MyFormatExtension();
         // Add elements to collection.
         myCollection.Add(mySoapBinding1);
         myCollection.Add(mySoapAddressBinding);
         myCollection.Add(mySoapBinding2);
         myCollection.Add(myFormatExtensionObject);
         Console.WriteLine("Collection contains following types of elements:
 ");
         // Display the 'Type' of the elements in collection.
         for(int i = 0;i< myCollection.Count;i++)
 
         {
            Console.WriteLine(myCollection[i].GetType().ToString()); 
         }
         // Check element of type 'SoapAddressBinding' in collection.
         Object   myObj = myCollection.Find(mySoapAddressBinding.GetType());
         if(myObj == null)
         {
            Console.WriteLine("Element of type '{0}' not found in
 collection.",
               mySoapAddressBinding.GetType().ToString());
         }
         else
         {
            Console.WriteLine("Element of type '{0}' found in
 collection.",
               mySoapAddressBinding.GetType().ToString());
         }
         // Check all elements of type 'SoapBinding' in collection.
         Object[] myObjectArray1 = new Object[myCollection.Count];
         myObjectArray1 = myCollection.FindAll(mySoapBinding1.GetType());
         int myNumberOfElements = 0;
         IEnumerator myIEnumerator  = myObjectArray1.GetEnumerator();
         
         // Calculate number of elements of type 'SoapBinding'.
         while(myIEnumerator.MoveNext())
         {
            if(mySoapBinding1.GetType() == myIEnumerator.Current.GetType())
               myNumberOfElements++;
         }
         Console.WriteLine("Collection contains {0} objects of type '{1}'.",
 
                           myNumberOfElements.ToString(),
                           mySoapBinding1.GetType().ToString());
         // Check 'IsHandled' status for 'myFormatExtensionObject' object
 in collection.
         Console.WriteLine("'IsHandled' status for {0} object
 is {1}.",
                  myFormatExtensionObject.ToString(), 
                  myCollection.IsHandled(myFormatExtensionObject).ToString());
         // Check 'IsRequired' status for 'myFormatExtensionObject'
 object in collection.
         Console.WriteLine("'IsRequired' status for {0} object
 is {1}.",
                  myFormatExtensionObject.ToString(),
                  myCollection.IsRequired(myFormatExtensionObject).ToString());
         // Copy elements of collection to an Object array.
         Object[] myObjectArray2 = new Object[myCollection.Count];
         myCollection.CopyTo(myObjectArray2,0);
         Console.WriteLine("Collection elements are copied to an object array.");
         // Check for 'myFormatExtension' object in collection.
         if(myCollection.Contains(myFormatExtensionObject))
         {
            // Get index of a 'myFormatExtension' object in collection.
            Console.WriteLine("Index of 'myFormatExtensionObject' is "+
               "{0} in collection.",
               myCollection.IndexOf(myFormatExtensionObject).ToString());
            // Remove 'myFormatExtensionObject' element from collection.
            myCollection.Remove(myFormatExtensionObject);
            Console.WriteLine("'myFormatExtensionObject' is removed"+
                              " from collection.");
         }
         // Insert 'MyFormatExtension' object.
         myCollection.Insert(0,myFormatExtensionObject);
         Console.WriteLine("'myFormatExtensionObject' is inserted to collection.");

      }
      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::Web::Services::Description;
using namespace System::Collections;

ref class MyFormatExtension: public ServiceDescriptionFormatExtension
{
public:
   MyFormatExtension()
   {
      // Set the properties.
      this->Handled = true;
      this->Required = true;
   }
};

int main()
{
   try
   {
      ServiceDescription^ myServiceDescription = ServiceDescription::Read( "Sample_cpp.wsdl"
 );
      ServiceDescriptionFormatExtensionCollection^ myCollection = gcnew ServiceDescriptionFormatExtensionCollection(
 myServiceDescription );

      SoapBinding^ mySoapBinding1 = gcnew SoapBinding;
      SoapBinding^ mySoapBinding2 = gcnew SoapBinding;
      SoapAddressBinding^ mySoapAddressBinding = gcnew SoapAddressBinding;
      MyFormatExtension^ myFormatExtensionObject = gcnew MyFormatExtension;

      // Add elements to collection.
      myCollection->Add( mySoapBinding1 );
      myCollection->Add( mySoapAddressBinding );
      myCollection->Add( mySoapBinding2 );
      myCollection->Add( myFormatExtensionObject );

      Console::WriteLine( "Collection contains following types of elements:
 " );
      
      // Display the 'Type' of the elements in collection.
      for ( int i = 0; i < myCollection->Count;
 i++ )
         Console::WriteLine( myCollection[ i ]->GetType() );

      // Check element of type 'SoapAddressBinding' in collection.
      Object^ myObj = myCollection->Find( mySoapAddressBinding->GetType() );
      if ( myObj == nullptr )
            Console::WriteLine( "Element of type ' {0}' not found in
 collection.", mySoapAddressBinding->GetType() );
      else
            Console::WriteLine( "Element of type ' {0}' found in
 collection.", mySoapAddressBinding->GetType() );

      // Check all elements of type 'SoapBinding' in collection.
      array<Object^>^myObjectArray1 = gcnew array<Object^>(myCollection->Count);
      myObjectArray1 = myCollection->FindAll( mySoapBinding1->GetType() );
      int myNumberOfElements = 0;
      IEnumerator^ myIEnumerator = myObjectArray1->GetEnumerator();

      // Calculate number of elements of type 'SoapBinding'.
      while ( myIEnumerator->MoveNext() )
            if ( mySoapBinding1->GetType() == myIEnumerator->Current->GetType()
 )
            myNumberOfElements++;
      Console::WriteLine( "Collection contains {0} objects of type ' {1}'.",
 myNumberOfElements, mySoapBinding1->GetType() );

      // Check 'IsHandled' status for 'myFormatExtensionObject' object
 in collection.
      Console::WriteLine( "'IsHandled' status for {0} object
 is {1}.", myFormatExtensionObject, myCollection->IsHandled( myFormatExtensionObject
 ) );

      // Check 'IsRequired' status for 'myFormatExtensionObject' object
 in collection.
      Console::WriteLine( "'IsRequired' status for {0} object
 is {1}.", myFormatExtensionObject, myCollection->IsRequired( myFormatExtensionObject
 ) );

      // Copy elements of collection to an Object array.
      array<Object^>^myObjectArray2 = gcnew array<Object^>(myCollection->Count);
      myCollection->CopyTo( myObjectArray2, 0 );
      Console::WriteLine( "Collection elements are copied to an object array."
 );

      // Check for 'myFormatExtension' object in collection.
      if ( myCollection->Contains( myFormatExtensionObject
 ) )
      {
         // Get index of a 'myFormatExtension' object in collection.
         Console::WriteLine( "Index of 'myFormatExtensionObject' is {0} in
 collection.", myCollection->IndexOf( myFormatExtensionObject ) );

         // Remove 'myFormatExtensionObject' element from collection.
         myCollection->Remove( myFormatExtensionObject );
         Console::WriteLine( "'myFormatExtensionObject' is removed  from collection."
 );
      }

      // Insert 'MyFormatExtension' object.
      myCollection->Insert( 0, myFormatExtensionObject );
      Console::WriteLine( "'myFormatExtensionObject' is inserted to collection."
 );
   }
   catch ( Exception^ e ) 
   {
      Console::WriteLine( "The following exception was raised: {0}", e->Message
 );
   }
}
import System.*;
import System.Web.Services.Description.*;
import System.Collections.*;

class MyFormatExtension extends ServiceDescriptionFormatExtension
{
    public MyFormatExtension()
    {
        // Set the properties.
        this.set_Handled(true);
        this.set_Required(true);
    } //MyFormatExtension
} //MyFormatExtension

class myCollectionSample
{
    public static void main(String[]
 args)
    {
        try {
            ServiceDescription myServiceDescription = 
                ServiceDescription.Read("Sample_JSL.wsdl");
            ServiceDescriptionFormatExtensionCollection myCollection = 
                new ServiceDescriptionFormatExtensionCollection(
                myServiceDescription);
            
            SoapBinding mySoapBinding1 = new SoapBinding();
            SoapBinding mySoapBinding2 = new SoapBinding();
            SoapAddressBinding mySoapAddressBinding = new SoapAddressBinding();
            MyFormatExtension myFormatExtensionObject = new MyFormatExtension();
            
            // Add elements to collection.
            myCollection.Add(mySoapBinding1);
            myCollection.Add(mySoapAddressBinding);
            myCollection.Add(mySoapBinding2);
            myCollection.Add(myFormatExtensionObject);
            
            Console.WriteLine("Collection contains following " 
                + " types of elements: ");
            // Display the 'Type' of the elements in collection.
            for (int i = 0; i < myCollection.get_Count();
 i++) {
                Console.WriteLine(myCollection.get_Item(i).GetType().ToString());
            }
            
            // Check element of type 'SoapAddressBinding' in collection.
            Object myObj = myCollection.Find(mySoapAddressBinding.GetType());
            if (myObj == null) {
                Console.WriteLine(
                    "Element of type '{0}' not found in collection.",
 
                    mySoapAddressBinding.GetType().ToString());
            }
            else {
                Console.WriteLine(
                    "Element of type '{0}' found in collection.",
 
                    mySoapAddressBinding.GetType().ToString());
            }
            
            // Check all elements of type 'SoapBinding' in collection.
            Object myObjectArray1[] = new Object[myCollection.get_Count()];
            myObjectArray1 = myCollection.FindAll(mySoapBinding1.GetType());
            int myNumberOfElements = 0;
            IEnumerator myIEnumerator = myObjectArray1.GetEnumerator();
            // Calculate number of elements of type 'SoapBinding'.
            while (myIEnumerator.MoveNext()) {
                if ((mySoapBinding1.GetType()).Equals(myIEnumerator.get_Current().
                    GetType())) {
                    myNumberOfElements++;
                }
            }
            Console.WriteLine("Collection contains {0} objects of type '{1}'.",
 
                System.Convert.ToString(myNumberOfElements), 
                System.Convert.ToString(mySoapBinding1.GetType()));
            
            // Check 'IsHandled' status for 'myFormatExtensionObject'
 object 
            // in collection.
            Console.WriteLine("'IsHandled' status for {0} object
 is {1}.", 
                System.Convert.ToString(myFormatExtensionObject), 
                System.Convert.ToString(myCollection.
                IsHandled(myFormatExtensionObject)));
            
            // Check 'IsRequired' status for 'myFormatExtensionObject'
 object 
            // in collection.
            Console.WriteLine("'IsRequired' status for {0} object
 is {1}.", 
                System.Convert.ToString(myFormatExtensionObject), 
                System.Convert.ToString(myCollection.
                IsRequired(myFormatExtensionObject)));
            
            // Copy elements of collection to an Object array.
            Object myObjectArray2[] = new Object[myCollection.get_Count()];
            myCollection.CopyTo(myObjectArray2, 0);
            Console.WriteLine("Collection elements are copied to an "
                + "object array.");
            
            // Check for 'myFormatExtension' object in collection.
            if (myCollection.Contains(myFormatExtensionObject))
 {
                // Get index of a 'myFormatExtension' object in collection.
                Console.WriteLine("Index of 'myFormatExtensionObject' is "
 + 
                    "{0} in collection.", System.Convert.ToString(myCollection.
                    IndexOf(myFormatExtensionObject)));
                
                // Remove 'myFormatExtensionObject' element from collection.
                myCollection.Remove(myFormatExtensionObject);
                Console.WriteLine("'myFormatExtensionObject' is removed"
 
                    + " from collection.");
            }
            
            // Insert 'MyFormatExtension' object.
            myCollection.Insert(0, myFormatExtensionObject);
            Console.WriteLine("'myFormatExtensionObject' "
                + "is inserted to collection.");
        } 
        catch (System.Exception e) {
            Console.WriteLine("The following exception was raised: {0}",
 
                e.get_Message());
        }
    } //main
} //myCollectionSample
継承階層継承階層
System.Object
   System.Collections.CollectionBase
     System.Web.Services.Description.ServiceDescriptionBaseCollection
      System.Web.Services.Description.ServiceDescriptionFormatExtensionCollection
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ServiceDescriptionFormatExtensionCollection メンバ
System.Web.Services.Description 名前空間

ServiceDescriptionFormatExtensionCollection コンストラクタ

ServiceDescriptionFormatExtensionCollection クラスの新しいインスタンスを初期化します。

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

Dim parent As Object

Dim instance As New ServiceDescriptionFormatExtensionCollection(parent)
public ServiceDescriptionFormatExtensionCollection (
    Object parent
)
public:
ServiceDescriptionFormatExtensionCollection (
    Object^ parent
)
public ServiceDescriptionFormatExtensionCollection (
    Object parent
)
public function ServiceDescriptionFormatExtensionCollection
 (
    parent : Object
)

パラメータ

parent

このコレクションがメンバとして含まれるオブジェクト。

解説解説

System.Web.Services.Description 名前空間内のクラスの多くが ServiceDescriptionFormatExtensionCollection を表す Extensions プロパティを公開するため、コンストラクタは、現在の ServiceDescriptionFormatExtensionCollection で入れ子になっている Web サービス記述言語 (WSDL: Web Services Description Language) 階層構造のレベルに対応する親オブジェクトを割り当てます。WSDL の詳細については、http://www.w3.org/TR/wsdl/ の仕様を参照してください。

使用例使用例
Dim myServiceDescription As ServiceDescription
 = _
        ServiceDescription.Read("Sample_VB.wsdl")
Dim myCollection As New
 ServiceDescriptionFormatExtensionCollection(myServiceDescription)
ServiceDescription myServiceDescription = 
   ServiceDescription.Read("Sample_CS.wsdl");
ServiceDescriptionFormatExtensionCollection  myCollection = 
   new ServiceDescriptionFormatExtensionCollection(myServiceDescription);
ServiceDescription^ myServiceDescription = ServiceDescription::Read( "Sample_cpp.wsdl"
 );
ServiceDescriptionFormatExtensionCollection^ myCollection = gcnew ServiceDescriptionFormatExtensionCollection(
 myServiceDescription );
ServiceDescription myServiceDescription = 
    ServiceDescription.Read("Sample_JSL.wsdl");
ServiceDescriptionFormatExtensionCollection myCollection = 
    new ServiceDescriptionFormatExtensionCollection(
    myServiceDescription);
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ServiceDescriptionFormatExtensionCollection クラス
ServiceDescriptionFormatExtensionCollection メンバ
System.Web.Services.Description 名前空間

ServiceDescriptionFormatExtensionCollection プロパティ


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

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

関連項目

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

ServiceDescriptionFormatExtensionCollection メソッド


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

( プロテクト メソッド も参照)
  名前 説明
パブリック メソッド Add 指定した ServiceDescriptionFormatExtension を ServiceDescriptionFormatExtensionCollection の末尾に追加します。
パブリック メソッド Clear  CollectionBase インスタンスからすべてのオブジェクトを削除します。このメソッドはオーバーライドできません。 ( CollectionBase から継承されます。)
パブリック メソッド Contains 指定した ServiceDescriptionFormatExtension が ServiceDescriptionFormatExtensionCollection のメンバかどうかを示す値を返します。
パブリック メソッド CopyTo ServiceDescriptionFormatExtensionCollection 全体を ServiceDescriptionFormatExtension 型の 1 次元配列にコピーします。コピー操作は、コピー先の配列の指定した 0 から始まるインデックス番号から始まります。
パブリック メソッド Equals  オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 ( Object から継承されます。)
パブリック メソッド Find オーバーロードされます。 ServiceDescriptionFormatExtensionCollection を検索し、渡されたパラメータによって指定されたコレクションの最初のメンバを返します。
パブリック メソッド FindAll オーバーロードされます。 ServiceDescriptionFormatExtensionCollection 内で、渡されたパラメータによって指定されたコレクションのすべてのメンバを検索します。
パブリック メソッド GetEnumerator  CollectionBase インスタンスを反復処理する列挙子を返します。 ( CollectionBase から継承されます。)
パブリック メソッド GetHashCode  特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 ( Object から継承されます。)
パブリック メソッド GetType  現在のインスタンスの Type を取得します。 ( Object から継承されます。)
パブリック メソッド IndexOf 指定した ServiceDescriptionFormatExtension を検索し、コレクション内の最初のインスタンスの 0 から始まるインデックス番号を返します。
パブリック メソッド Insert 指定した 0 から始まるインデックス番号にある ServiceDescriptionFormatExtensionCollection に、指定した ServiceDescriptionFormatExtension を追加します。
パブリック メソッド IsHandled 機能拡張要素が XML Web サービスにインポートされるときに、指定したオブジェクトがインポート プロセスによって使用されているかどうかを示す値を返します。
パブリック メソッド IsRequired 指定したオブジェクトが XML Web サービスの操作に必要かどうかを示す値を返します。
パブリック メソッド ReferenceEquals  指定した複数の Object インスタンスが同一かどうかを判断します。 ( Object から継承されます。)
パブリック メソッド Remove ServiceDescriptionFormatExtensionCollection 内で最初に見つかった指定の ServiceDescriptionFormatExtension を削除します。
パブリック メソッド 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 から継承されます。)
参照参照

関連項目

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

ServiceDescriptionFormatExtensionCollection メンバ

XML Web サービスで使用される機能拡張要素のコレクションを表します。このクラスは継承できません。

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


パブリック コンストラクタパブリック コンストラクタ
  名前 説明
パブリック メソッド ServiceDescriptionFormatExtensionCollection ServiceDescriptionFormatExtensionCollection クラスの新しいインスタンスを初期化します。
パブリック プロパティパブリック プロパティ
( プロテクト プロパティ も参照)
  名前 説明
パブリック プロパティ Capacity  CollectionBase に格納できる要素の数を取得または設定します。(CollectionBase から継承されます。)
パブリック プロパティ Count  CollectionBase インスタンスに格納されている要素の数を取得します。このプロパティはオーバーライドできません。(CollectionBase から継承されます。)
パブリック プロパティ Item ServiceDescriptionFormatExtensionCollection のメンバの値を取得または設定します。
プロテクト プロパティプロテクト プロパティ
  名前 説明
プロテクト プロパティ InnerList  CollectionBase インスタンス内の要素のリストを格納する ArrayList を取得します。(CollectionBase から継承されます。)
プロテクト プロパティ List  CollectionBase インスタンス内の要素のリストを格納する IList を取得します。(CollectionBase から継承されます。)
パブリック メソッドパブリック メソッド
( プロテクト メソッド も参照)
  名前 説明
パブリック メソッド Add 指定した ServiceDescriptionFormatExtension を ServiceDescriptionFormatExtensionCollection の末尾に追加します。
パブリック メソッド Clear  CollectionBase インスタンスからすべてのオブジェクトを削除します。このメソッドはオーバーライドできません。 (CollectionBase から継承されます。)
パブリック メソッド Contains 指定した ServiceDescriptionFormatExtension が ServiceDescriptionFormatExtensionCollection のメンバかどうかを示す値を返します。
パブリック メソッド CopyTo ServiceDescriptionFormatExtensionCollection 全体を ServiceDescriptionFormatExtension 型の 1 次元配列にコピーします。コピー操作は、コピー先の配列の指定した 0 から始まるインデックス番号から始まります。
パブリック メソッド Equals  オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 (Object から継承されます。)
パブリック メソッド Find オーバーロードされます。 ServiceDescriptionFormatExtensionCollection を検索し、渡されたパラメータによって指定されたコレクションの最初のメンバを返します。
パブリック メソッド FindAll オーバーロードされます。 ServiceDescriptionFormatExtensionCollection 内で、渡されたパラメータによって指定されたコレクションのすべてのメンバを検索します。
パブリック メソッド GetEnumerator  CollectionBase インスタンスを反復処理する列挙子を返します。 (CollectionBase から継承されます。)
パブリック メソッド GetHashCode  特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 (Object から継承されます。)
パブリック メソッド GetType  現在のインスタンスの Type を取得します。 (Object から継承されます。)
パブリック メソッド IndexOf 指定した ServiceDescriptionFormatExtension を検索し、コレクション内の最初のインスタンスの 0 から始まるインデックス番号を返します。
パブリック メソッド Insert 指定した 0 から始まるインデックス番号にある ServiceDescriptionFormatExtensionCollection に、指定した ServiceDescriptionFormatExtension を追加します。
パブリック メソッド IsHandled 機能拡張要素が XML Web サービスにインポートされるときに、指定したオブジェクトがインポート プロセスによって使用されているかどうかを示す値を返します。
パブリック メソッド IsRequired 指定したオブジェクトが XML Web サービスの操作に必要かどうかを示す値を返します。
パブリック メソッド ReferenceEquals  指定した複数の Object インスタンスが同一かどうかを判断します。 (Object から継承されます。)
パブリック メソッド Remove ServiceDescriptionFormatExtensionCollection 内で最初に見つかった指定の ServiceDescriptionFormatExtension を削除します。
パブリック メソッド 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 から継承されます。)
参照参照

関連項目

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



英和和英テキスト翻訳

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

辞書ショートカット

すべての辞書の索引

「ServiceDescriptionFormatExtensionCollection」の関連用語

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

   

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



ServiceDescriptionFormatExtensionCollectionのページの著作権

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

©2026 GRAS Group, Inc.RSS