DiscoveryClientDocumentCollection::Keys Property

 
Namespace:   System.Web.Services.Discovery
Assembly:  System.Web.Services (in System.Web.Services.dll)

public:
property ICollection^ Keys {
	ICollection^ get();
}

Property Value

Type: System.Collections::ICollection^

An ICollection containing the keys of the DiscoveryClientDocumentCollection.

The following code example outputs the keys within the DiscoveryClientDocumentCollection to the console.

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 ] );

.NET Framework
Available since 1.1
Return to top
Show: