Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
© 2017 Microsoft