NameValueCollection.AllKeys Property
Gets all the keys in the NameValueCollection.
[Visual Basic] Public Overridable ReadOnly Property AllKeys As String () [C#] public virtual string[] AllKeys {get;} [C++] public: __property virtual String* get_AllKeys(); [JScript] public function get AllKeys() : String[];
Property Value
A String array that contains all the keys of the NameValueCollection.
Remarks
If the collection is empty, this method returns an empty String array, not a null reference (Nothing in Visual Basic).
The arrays returned by AllKeys are cached for better performance and are automatically refreshed when the collection changes. A derived class can invalidate the cached version by calling InvalidateCachedArrays, thereby forcing the arrays to be recreated.
Requirements
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard
See Also
NameValueCollection Class | NameValueCollection Members | System.Collections.Specialized Namespace | GetKey | InvalidateCachedArrays