다음을 통해 공유


DiscoveryExceptionDictionary.Keys 속성

정의

ICollection에 있는 모든 키가 포함된 DiscoveryExceptionDictionary 개체를 가져옵니다.

public:
 property System::Collections::ICollection ^ Keys { System::Collections::ICollection ^ get(); };
public System.Collections.ICollection Keys { get; }
member this.Keys : System.Collections.ICollection
Public ReadOnly Property Keys As ICollection

속성 값

ICollection

ICollection의 키를 포함하는 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.Count];
myExceptionDictionary.Keys.CopyTo((Array)myArray,0);
Console.WriteLine(" Keys are :");
foreach(object myObj in myArray)
{
   Console.WriteLine(" " + myObj.ToString());
}
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

적용 대상

추가 정보