Hashtable.Keys : hashtable « System.Collections « VB.Net by API






Hashtable.Keys

  
Imports System
Imports System.Collections
Imports System.Environment


Public Class MainClass

  Shared Sub Main()
      Dim eVariables As Hashtable
      eVariables = CType(GetEnvironmentVariables(), Hashtable)
      Dim thing As Object
      For Each thing In eVariables.Keys
            Console.WriteLine("The environment variable named " & thing.ToString() _
            & " has value " & eVariables(thing).ToString())
      Next
  End Sub
End Class

   
    
  








Related examples in the same category

1.Hashtable.Add
2.Hashtable.GetEnumerator()
3.Hashtable.Item
4.Hashtable.Remove