Condividi tramite


DiscoveryExceptionDictionary.Values Proprietà

Definizione

Ottiene un oggetto ICollection contenente tutti i valori presenti in DiscoveryExceptionDictionary.

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

Valore della proprietà

Interfaccia ICollection contenente i valori dell'interfaccia DiscoveryExceptionDictionary.

Esempio

array<Object^>^myCollectionArray = gcnew array<Object^>(myExceptionDictionary->Count);
myExceptionDictionary->Values->CopyTo( (Array^)myCollectionArray, 0 );
Console::WriteLine( " Values are :" );
for each(Object^ myObj in myCollectionArray)
{
   Console::WriteLine(" " + myObj->ToString());
}
object[] myCollectionArray = new object[myExceptionDictionary.Count];
myExceptionDictionary.Values.CopyTo((Array)myCollectionArray,0);
Console.WriteLine(" Values are :");
foreach(object myObj in myCollectionArray)
{
   Console.WriteLine(" " + myObj.ToString());
}
Dim myCollectionArray(myExceptionDictionary.Count -1 ) As Object
myExceptionDictionary.Values.CopyTo(CType(myCollectionArray, Array), 0)
Console.WriteLine(" Values are :")
For Each myObj In  myCollectionArray
   Console.WriteLine(" " + myObj.ToString())
Next myObj

Si applica a

Vedi anche