OrderedDictionary.Values Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets an ICollection object containing the values in the OrderedDictionary collection.

Namespace:   System.Collections.Specialized
Assembly:  System (in System.dll)

abstract Values : ICollection with get
override Values : ICollection with get

Property Value

Type: System.Collections.ICollection

An ICollection object containing the values in the OrderedDictionary collection.

The returned ICollection object is not a static copy; instead, the ICollection refers back to the values in the original OrderedDictionary collection. Therefore, changes to the OrderedDictionary continue to be reflected in the ICollection.

The following code example demonstrates the creation and population of an OrderedDictionary collection, and then prints the contents to the console. In this example, the Keys and Values properties are passed to a method that displays the contents. This code is part of a larger code example that can be viewed at OrderedDictionary.

No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.

Universal Windows Platform
Available since 10
.NET Framework
Available since 2.0
Return to top
Show: