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.

DiscoveryExceptionDictionary::Keys Property

 

Gets a System.Collections::ICollection object with all the keys in the DiscoveryExceptionDictionary.

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 DiscoveryExceptionDictionary.

array<Object^>^myArray = gcnew array<Object^>(myExceptionDictionary->Count);
myExceptionDictionary->Keys->CopyTo( (Array^)myArray, 0 );
Console::WriteLine( " Keys are :" );

for each(Object^ myObj in myArray)
{
   Console::WriteLine(" " + myObj->ToString());
}

.NET Framework
Available since 1.1
Return to top
Show:
© 2017 Microsoft