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 */
public ICollection get_Keys ()

public function get Keys () : ICollection

Not applicable.

Property Value

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());
}

Object myArray[] = new Object[myExceptionDictionary.
    get_Count()];

myExceptionDictionary.get_Keys().CopyTo((Array)myArray, 0);
Console.WriteLine(" Keys are :");
Object myObj = null;
for ( int iCtr=0; iCtr < myArray.length; iCtr++ ) {
    myObj = myArray[iCtr];
    Console.WriteLine(" " + myObj.ToString());
}

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

ADD
Show: