Creating a hashtable

An empty hashtable is created in the same manner as the following:

$hashtable = @{} 

A hashtable with a few objects appears as follows:

$hashtable = @{Key1 = "Value1"; Key2 = "Value2"} 

Elements in a hashtable may be spread across multiple lines:

$hashtable = @{ 
    Key1 = "Value1" 
    Key2 = "Value2" 
} 
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.138.125.139