Export (0) Print
Expand All

OrderedDictionary.AsReadOnly Method

Returns a read-only copy of the current OrderedDictionary collection.

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

public OrderedDictionary AsReadOnly()

Return Value

Type: System.Collections.Specialized.OrderedDictionary
A read-only copy of the current OrderedDictionary collection.

The AsReadOnly method creates a read-only wrapper around the current OrderedDictionary collection. Changes made to the OrderedDictionary collection are reflected in the read-only copy.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft