Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

DiscoveryClientDocumentCollection.Keys Property

Gets an System.Collections.ICollection object with all the keys in the DiscoveryClientDocumentCollection.

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

public ICollection Keys { 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;
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]);
}

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft