This documentation is archived and is not being maintained.

DiscoveryExceptionDictionary.Values Property

Gets a System.Collections.ICollection object containing all the values in the DiscoveryExceptionDictionary.

[Visual Basic]
Public ReadOnly Property Values As ICollection
[C#]
public ICollection Values {get;}
[C++]
public: __property ICollection* get_Values();
[JScript]
public function get Values() : ICollection;

Property Value

An ICollection containing the values in the DiscoveryExceptionDictionary.

Example

[Visual Basic] 
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

[C#] 
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());
}

[C++] 
Object* myCollectionArray[] = new Object*[myExceptionDictionary->Count];
myExceptionDictionary->Values->CopyTo((Array*)myCollectionArray,0);
Console::WriteLine(S" Values are :");
IEnumerator* myEnum1 = myCollectionArray->GetEnumerator();
while (myEnum1->MoveNext())
{
   Object* myObj = __try_cast<Object*>(myEnum1->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 Language Filter 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 | Values

Show: