DiscoveryClientDocumentCollection クラス
アセンブリ: System.Web.Services (system.web.services.dll 内)


DiscoveryClientProtocol の Documents プロパティが DiscoveryClientDocumentCollection 型です。

XML Web サービス探索を実行して、取得したドキュメントをクライアントにダウンロードするコード例を次に示します。DiscoveryClientDocumentCollection 内の探索ドキュメントの名前がコンソールに出力されます。
Imports System Imports System.Net Imports System.IO Imports System.Collections Imports System.Security.Permissions Imports System.Web.Services.Discovery Class DiscoveryClientDocumentCollectionSample Shared Sub Main() Run() End Sub 'Main <PermissionSetAttribute(SecurityAction.Demand, Name := "FullTrust")> _ Shared Sub Run() Dim myDiscoveryClientProtocol As New DiscoveryClientProtocol() myDiscoveryClientProtocol.Credentials = CredentialCache.DefaultCredentials ' 'dataservice.disco' is a sample discovery document. Dim myStringUrl As String = "http://localhost/dataservice.disco" ' 'Discover' method is called to populate the 'Documents' property. Dim myDiscoveryDocument As DiscoveryDocument = myDiscoveryClientProtocol.Discover(myStringUrl) ' An instance of the 'DiscoveryClientDocumentCollection' class is created. Dim myDiscoveryClientDocumentCollection As DiscoveryClientDocumentCollection = _ myDiscoveryClientProtocol.Documents ' 'Keys' in the collection are retrieved. Dim myCollection As ICollection = myDiscoveryClientDocumentCollection.Keys Dim myObjectCollection(myDiscoveryClientDocumentCollection.Count-1) As Object myCollection.CopyTo(myObjectCollection, 0) Console.WriteLine("The discovery documents in the collection are :") Dim iIndex As Integer For iIndex = 0 To myObjectCollection.Length - 1 Console.WriteLine(myObjectCollection(iIndex)) Next iIndex Console.WriteLine("") ' 'Values' in the collection are retrieved. Dim myCollection1 As ICollection = myDiscoveryClientDocumentCollection.Values Dim myObjectCollection1(myDiscoveryClientDocumentCollection.Count-1) As Object myCollection1.CopyTo(myObjectCollection1, 0) Console.WriteLine("The objects in the collection are :") For iIndex = 0 To myObjectCollection1.Length - 1 Console.WriteLine(myObjectCollection1(iIndex)) Next iIndex End Sub 'Run End Class 'DiscoveryClientDocumentCollectionSample
using System; using System.Net; using System.IO; using System.Collections; using System.Security.Permissions; using System.Web.Services.Discovery; class DiscoveryClientDocumentCollectionSample { static void Main() { Run(); } [PermissionSetAttribute(SecurityAction.Demand, Name="FullTrust")] static void Run() { DiscoveryClientProtocol myDiscoveryClientProtocol = new DiscoveryClientProtocol(); myDiscoveryClientProtocol.Credentials = CredentialCache.DefaultCredentials; // 'dataservice.disco' is a sample discovery document. string myStringUrl = "http://localhost/dataservice.disco"; // 'Discover' method is called to populate the 'Documents' property. DiscoveryDocument myDiscoveryDocument = myDiscoveryClientProtocol.Discover(myStringUrl); // An instance of the 'DiscoveryClientDocumentCollection' class is created. DiscoveryClientDocumentCollection myDiscoveryClientDocumentCollection = myDiscoveryClientProtocol.Documents; // 'Keys' in the collection are retrieved. ICollection myCollection = myDiscoveryClientDocumentCollection.Keys; object[] myObjectCollection = new object[myDiscoveryClientDocumentCollection.Count]; myCollection.CopyTo(myObjectCollection, 0); Console.WriteLine("The discovery documents in the collection are :"); for (int iIndex=0; iIndex < myObjectCollection.Length; iIndex++) { Console.WriteLine(myObjectCollection[iIndex]); } Console.WriteLine(""); // 'Values' in the collection are retrieved. ICollection myCollection1 = myDiscoveryClientDocumentCollection.Values; object[] myObjectCollection1 = new object[myDiscoveryClientDocumentCollection.Count]; myCollection1.CopyTo(myObjectCollection1, 0); Console.WriteLine("The objects in the collection are :"); for (int iIndex=0; iIndex < myObjectCollection1.Length; iIndex++) { Console.WriteLine(myObjectCollection1[iIndex]); } } }
#using <System.dll> #using <System.Web.Services.dll> using namespace System; using namespace System::Net; using namespace System::IO; using namespace System::Collections; using namespace System::Web::Services::Discovery; int main() { DiscoveryClientProtocol^ myDiscoveryClientProtocol = gcnew DiscoveryClientProtocol; myDiscoveryClientProtocol->Credentials = CredentialCache::DefaultCredentials; // 'dataservice.disco' is a sample discovery document. String^ myStringUrl = "http://localhost/dataservice.disco"; // 'Discover' method is called to populate the 'Documents' property. DiscoveryDocument^ myDiscoveryDocument = myDiscoveryClientProtocol->Discover( myStringUrl ); // An instance of the 'DiscoveryClientDocumentCollection' class is created. DiscoveryClientDocumentCollection^ myDiscoveryClientDocumentCollection = myDiscoveryClientProtocol->Documents; // 'Keys' in the collection are retrieved. ICollection^ myCollection = myDiscoveryClientDocumentCollection->Keys; array<Object^>^myObjectCollection = gcnew array<Object^>(myDiscoveryClientDocumentCollection->Count); myCollection->CopyTo( myObjectCollection, 0 ); Console::WriteLine( "The discovery documents in the collection are :" ); for ( int iIndex = 0; iIndex < myObjectCollection->Length; iIndex++ ) { Console::WriteLine( myObjectCollection[ iIndex ] ); } Console::WriteLine( "" ); // 'Values' in the collection are retrieved. ICollection^ myCollection1 = myDiscoveryClientDocumentCollection->Values; array<Object^>^myObjectCollection1 = gcnew array<Object^>(myDiscoveryClientDocumentCollection->Count); myCollection1->CopyTo( myObjectCollection1, 0 ); Console::WriteLine( "The objects in the collection are :" ); for ( int iIndex = 0; iIndex < myObjectCollection1->Length; iIndex++ ) { Console::WriteLine( myObjectCollection1[ iIndex ] ); } }

System.Collections.DictionaryBase
System.Web.Services.Discovery.DiscoveryClientDocumentCollection


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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


DiscoveryClientDocumentCollection コンストラクタ
アセンブリ: System.Web.Services (system.web.services.dll 内)


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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


DiscoveryClientDocumentCollection プロパティ

名前 | 説明 | |
---|---|---|
![]() | Count | DictionaryBase インスタンスに格納されている要素の数を取得します。 ( DictionaryBase から継承されます。) |
![]() | Item | DiscoveryClientDocumentCollection から、指定した URL を持つクライアント側の探索ドキュメント オブジェクトを取得または設定します。 |
![]() | Keys | DiscoveryClientDocumentCollection のすべてのキーを保持している System.Collections.ICollection オブジェクトを取得します。 |
![]() | Values | DiscoveryClientDocumentCollection 内のすべての値を保持している System.Collections.ICollection オブジェクトを取得します。 |

名前 | 説明 | |
---|---|---|
![]() | Dictionary | DictionaryBase インスタンスに格納されている要素のリストを取得します。 ( DictionaryBase から継承されます。) |
![]() | InnerHashtable | DictionaryBase インスタンスに格納されている要素のリストを取得します。 ( DictionaryBase から継承されます。) |

DiscoveryClientDocumentCollection メソッド

名前 | 説明 | |
---|---|---|
![]() | Add | 指定した URL を使用して、DiscoveryClientDocumentCollection にオブジェクトを追加します。 |
![]() | Clear | DictionaryBase インスタンスの内容を消去します。 ( DictionaryBase から継承されます。) |
![]() | Contains | 指定した URL を持つオブジェクトが DiscoveryClientDocumentCollection に格納されているかどうかを確認します。 |
![]() | CopyTo | 1 次元の Array の指定したインデックスに DictionaryBase の要素をコピーします。 ( DictionaryBase から継承されます。) |
![]() | Equals | オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 ( Object から継承されます。) |
![]() | GetEnumerator | DictionaryBase インスタンスを反復処理する IDictionaryEnumerator を返します。 ( DictionaryBase から継承されます。) |
![]() | GetHashCode | 特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 ( Object から継承されます。) |
![]() | GetType | 現在のインスタンスの Type を取得します。 ( Object から継承されます。) |
![]() | ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 ( Object から継承されます。) |
![]() | Remove | 指定した URL を持つオブジェクトを DiscoveryClientDocumentCollection から削除します。 |
![]() | ToString | 現在の Object を表す String を返します。 ( Object から継承されます。) |

名前 | 説明 | |
---|---|---|
![]() | Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 ( Object から継承されます。) |
![]() | MemberwiseClone | 現在の Object の簡易コピーを作成します。 ( Object から継承されます。) |
![]() | OnClear | DictionaryBase インスタンスの内容を消去する前に、追加のカスタム プロセスを実行します。 ( DictionaryBase から継承されます。) |
![]() | OnClearComplete | DictionaryBase インスタンスの内容を消去した後に、追加のカスタム プロセスを実行します。 ( DictionaryBase から継承されます。) |
![]() | OnGet | 指定したキーおよび値を持つ、DictionaryBase インスタンスの要素を取得します。 ( DictionaryBase から継承されます。) |
![]() | OnInsert | DictionaryBase インスタンスに新しい要素を挿入する前に、追加のカスタム プロセスを実行します。 ( DictionaryBase から継承されます。) |
![]() | OnInsertComplete | DictionaryBase インスタンスに新しい要素を挿入した後に、追加のカスタム プロセスを実行します。 ( DictionaryBase から継承されます。) |
![]() | OnRemove | DictionaryBase インスタンスから要素を削除する前に、追加のカスタム プロセスを実行します。 ( DictionaryBase から継承されます。) |
![]() | OnRemoveComplete | DictionaryBase インスタンスから要素を削除した後に、追加のカスタム プロセスを実行します。 ( DictionaryBase から継承されます。) |
![]() | OnSet | DictionaryBase インスタンスに値を設定する前に、追加のカスタム プロセスを実行します。 ( DictionaryBase から継承されます。) |
![]() | OnSetComplete | DictionaryBase インスタンスに値を設定した後に、追加のカスタム プロセスを実行します。 ( DictionaryBase から継承されます。) |
![]() | OnValidate | 指定したキーおよび値を持つ要素を検証するときに、追加のカスタム プロセスを実行します。 ( DictionaryBase から継承されます。) |

DiscoveryClientDocumentCollection メンバ
XML Web サービス探索中に取得されクライアントにダウンロードされたドキュメントのコレクションを表します。このクラスは継承できません。
DiscoveryClientDocumentCollection データ型で公開されるメンバを以下の表に示します。

名前 | 説明 | |
---|---|---|
![]() | DiscoveryClientDocumentCollection |

名前 | 説明 | |
---|---|---|
![]() | Count | DictionaryBase インスタンスに格納されている要素の数を取得します。(DictionaryBase から継承されます。) |
![]() | Item | DiscoveryClientDocumentCollection から、指定した URL を持つクライアント側の探索ドキュメント オブジェクトを取得または設定します。 |
![]() | Keys | DiscoveryClientDocumentCollection のすべてのキーを保持している System.Collections.ICollection オブジェクトを取得します。 |
![]() | Values | DiscoveryClientDocumentCollection 内のすべての値を保持している System.Collections.ICollection オブジェクトを取得します。 |

名前 | 説明 | |
---|---|---|
![]() | Dictionary | DictionaryBase インスタンスに格納されている要素のリストを取得します。(DictionaryBase から継承されます。) |
![]() | InnerHashtable | DictionaryBase インスタンスに格納されている要素のリストを取得します。(DictionaryBase から継承されます。) |

名前 | 説明 | |
---|---|---|
![]() | Add | 指定した URL を使用して、DiscoveryClientDocumentCollection にオブジェクトを追加します。 |
![]() | Clear | DictionaryBase インスタンスの内容を消去します。 (DictionaryBase から継承されます。) |
![]() | Contains | 指定した URL を持つオブジェクトが DiscoveryClientDocumentCollection に格納されているかどうかを確認します。 |
![]() | CopyTo | 1 次元の Array の指定したインデックスに DictionaryBase の要素をコピーします。 (DictionaryBase から継承されます。) |
![]() | Equals | オーバーロードされます。 2 つの Object インスタンスが等しいかどうかを判断します。 (Object から継承されます。) |
![]() | GetEnumerator | DictionaryBase インスタンスを反復処理する IDictionaryEnumerator を返します。 (DictionaryBase から継承されます。) |
![]() | GetHashCode | 特定の型のハッシュ関数として機能します。GetHashCode は、ハッシュ アルゴリズムや、ハッシュ テーブルのようなデータ構造での使用に適しています。 (Object から継承されます。) |
![]() | GetType | 現在のインスタンスの Type を取得します。 (Object から継承されます。) |
![]() | ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 (Object から継承されます。) |
![]() | Remove | 指定した URL を持つオブジェクトを DiscoveryClientDocumentCollection から削除します。 |
![]() | ToString | 現在の Object を表す String を返します。 (Object から継承されます。) |

名前 | 説明 | |
---|---|---|
![]() | Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 (Object から継承されます。) |
![]() | MemberwiseClone | 現在の Object の簡易コピーを作成します。 (Object から継承されます。) |
![]() | OnClear | DictionaryBase インスタンスの内容を消去する前に、追加のカスタム プロセスを実行します。 (DictionaryBase から継承されます。) |
![]() | OnClearComplete | DictionaryBase インスタンスの内容を消去した後に、追加のカスタム プロセスを実行します。 (DictionaryBase から継承されます。) |
![]() | OnGet | 指定したキーおよび値を持つ、DictionaryBase インスタンスの要素を取得します。 (DictionaryBase から継承されます。) |
![]() | OnInsert | DictionaryBase インスタンスに新しい要素を挿入する前に、追加のカスタム プロセスを実行します。 (DictionaryBase から継承されます。) |
![]() | OnInsertComplete | DictionaryBase インスタンスに新しい要素を挿入した後に、追加のカスタム プロセスを実行します。 (DictionaryBase から継承されます。) |
![]() | OnRemove | DictionaryBase インスタンスから要素を削除する前に、追加のカスタム プロセスを実行します。 (DictionaryBase から継承されます。) |
![]() | OnRemoveComplete | DictionaryBase インスタンスから要素を削除した後に、追加のカスタム プロセスを実行します。 (DictionaryBase から継承されます。) |
![]() | OnSet | DictionaryBase インスタンスに値を設定する前に、追加のカスタム プロセスを実行します。 (DictionaryBase から継承されます。) |
![]() | OnSetComplete | DictionaryBase インスタンスに値を設定した後に、追加のカスタム プロセスを実行します。 (DictionaryBase から継承されます。) |
![]() | OnValidate | 指定したキーおよび値を持つ要素を検証するときに、追加のカスタム プロセスを実行します。 (DictionaryBase から継承されます。) |

Weblioに収録されているすべての辞書からDiscoveryClientDocumentCollectionを検索する場合は、下記のリンクをクリックしてください。

- DiscoveryClientDocumentCollectionのページへのリンク