Freigeben über


DiscoveryExceptionDictionary.Keys-Eigenschaft

Ruft ein System.Collections.ICollection-Objekt mit allen Schlüsseln aus der DiscoveryExceptionDictionary ab.

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

Syntax

'Declaration
Public ReadOnly Property Keys As ICollection
'Usage
Dim instance As DiscoveryExceptionDictionary
Dim value As ICollection

value = instance.Keys
public ICollection Keys { get; }
public:
property ICollection^ Keys {
    ICollection^ get ();
}
/** @property */
public ICollection get_Keys ()
public function get Keys () : ICollection

Eigenschaftenwert

Eine ICollection, die die Schlüssel des DiscoveryExceptionDictionary enthält.

Beispiel

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

Plattformen

Windows 98, Windows 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

.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.

Versionsinformationen

.NET Framework

Unterstützt in: 2.0, 1.1, 1.0

Siehe auch

Referenz

DiscoveryExceptionDictionary-Klasse
DiscoveryExceptionDictionary-Member
System.Web.Services.Discovery-Namespace
Keys