This documentation is archived and is not being maintained.
DiscoveryExceptionDictionary.Keys Property
.NET Framework 1.1
Gets a System.Collections.ICollection object with all the keys in the DiscoveryExceptionDictionary.
[Visual Basic] Public ReadOnly Property Keys As ICollection [C#] public ICollection Keys {get;} [C++] public: __property ICollection* get_Keys(); [JScript] public function get Keys() : ICollection;
Property Value
An ICollection containing the keys of the DiscoveryExceptionDictionary.
Example
[Visual Basic] Dim myArray(myExceptionDictionary.Count -1 ) As Object myExceptionDictionary.Keys.CopyTo(CType(myArray, Array), 0) Console.WriteLine(" Keys are :") Dim myObj As Object For Each myObj In myArray Console.WriteLine(" " + myObj.ToString()) Next myObj [C#] object[] myArray = new object[myExceptionDictionary.Count]; myExceptionDictionary.Keys.CopyTo((Array)myArray,0); Console.WriteLine(" Keys are :"); foreach(object myObj in myArray) { Console.WriteLine(" " + myObj.ToString()); } [C++] Object* myArray[] = new Object*[myExceptionDictionary->Count]; myExceptionDictionary->Keys->CopyTo((Array*)myArray,0); Console::WriteLine(S" Keys are :"); IEnumerator* myEnum = myArray->GetEnumerator(); while (myEnum->MoveNext()) { Object* myObj = __try_cast<Object*>(myEnum->Current); Console::WriteLine(S" {0}", myObj); }
[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button
in the upper-left corner of the page.
Requirements
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
See Also
DiscoveryExceptionDictionary Class | DiscoveryExceptionDictionary Members | System.Web.Services.Discovery Namespace | Keys
Show: