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: