DiscoveryClientReferenceCollection.Keys プロパティ
アセンブリ: System.Web.Services (system.web.services.dll 内)

DiscoveryClientReferenceCollection のキーを保持している ICollection。

Dim myDiscoveryClientProtocol As New DiscoveryClientProtocol() myDiscoveryClientProtocol.Credentials = _ CredentialCache.DefaultCredentials ' 'dataservice.disco' is a sample discovery document. Dim myStringUrl As String = "http://localhost/dataservice.disco" ' Call the Discover method to populate the References property. Dim myDiscoveryDocument As DiscoveryDocument = _ myDiscoveryClientProtocol.Discover(myStringUrl) ' Resolve all references found in the discovery document. myDiscoveryClientProtocol.ResolveAll() Dim myDiscoveryClientReferenceCollection As DiscoveryClientReferenceCollection = _ myDiscoveryClientProtocol.References ' Retrieve the keys in the collection. Dim myCollection As ICollection = myDiscoveryClientReferenceCollection.Keys Dim myObjectCollection(myDiscoveryClientReferenceCollection.Count) As Object myCollection.CopyTo(myObjectCollection, 0) Console.WriteLine("The discovery documents, service descriptions, and XML schema") Console.WriteLine(" definitions in the collection are:") Dim iIndex As Integer For iIndex = 0 To myObjectCollection.Length - 1 Console.WriteLine(myObjectCollection(iIndex)) Next iIndex
DiscoveryClientProtocol myDiscoveryClientProtocol = new DiscoveryClientProtocol(); myDiscoveryClientProtocol.Credentials = CredentialCache.DefaultCredentials; // 'dataservice.disco' is a sample discovery document. string myStringUrl = "http://localhost/dataservice.disco"; // Call the Discover method to populate the References property. DiscoveryDocument myDiscoveryDocument = myDiscoveryClientProtocol.Discover(myStringUrl); // Resolve all references found in the discovery document. myDiscoveryClientProtocol.ResolveAll(); DiscoveryClientReferenceCollection myDiscoveryClientReferenceCollection = myDiscoveryClientProtocol.References; // Retrieve the keys in the collection. ICollection myCollection = myDiscoveryClientReferenceCollection.Keys; object[] myObjectCollection = new object[myDiscoveryClientReferenceCollection.Count]; myCollection.CopyTo(myObjectCollection, 0); Console.WriteLine("The discovery documents, service descriptions, and XML schema"); Console.WriteLine(" definitions in the collection are:"); for (int iIndex=0; iIndex < myObjectCollection.Length; iIndex++) { Console.WriteLine(myObjectCollection[iIndex]); }
DiscoveryClientProtocol^ myDiscoveryClientProtocol = gcnew DiscoveryClientProtocol; myDiscoveryClientProtocol->Credentials = CredentialCache::DefaultCredentials; // 'dataservice.disco' is a sample discovery document. String^ myStringUrl = "http://localhost/dataservice.disco"; // Call the Discover method to populate the References property. DiscoveryDocument^ myDiscoveryDocument = myDiscoveryClientProtocol->Discover( myStringUrl ); // Resolve all references found in the discovery document. myDiscoveryClientProtocol->ResolveAll(); DiscoveryClientReferenceCollection^ myDiscoveryClientReferenceCollection = myDiscoveryClientProtocol->References; // Retrieve the keys in the collection. ICollection^ myCollection = myDiscoveryClientReferenceCollection->Keys; array<Object^>^myObjectCollection = gcnew array<Object^>(myDiscoveryClientReferenceCollection->Count); myCollection->CopyTo( myObjectCollection, 0 ); Console::WriteLine( "The discovery documents, service descriptions, and XML schema" ); Console::WriteLine( " definitions in the collection are:" ); for ( int iIndex = 0; iIndex < myObjectCollection->Length; iIndex++ ) { Console::WriteLine( myObjectCollection[ iIndex ] ); }

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


Weblioに収録されているすべての辞書からDiscoveryClientReferenceCollection.Keys プロパティを検索する場合は、下記のリンクをクリックしてください。

- DiscoveryClientReferenceCollection.Keys プロパティのページへのリンク