- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
What is Hash Table in PowerShell?
Hash table in a PowerShell is constructed with the Key-Value combination. Each key has its own value, so to get the value we need to refer the Key. We don’t need numeric indexing like Array to refer values.
This is how the hash table looks like.
Name Value ---- ----- EmpName Charlie City New York EmpID 001
In the hash table creation, keys and values are separated with Semi-colons (;). In the above example, EmpName, City and EmpID are referred as keys while Charlie, New York and 001 are their values respectively.
Hash table is the OrderedDictionary, if you check the hash table type, it would be collection of values (System.Object).
IsPublic IsSerial Name BaseType -------- -------- ---- -------- True True OrderedDictionary System.Object
- Related Articles
- How to create a Hash Table in PowerShell?
- How to clear all values from the Hash table in PowerShell?
- How to add and remove values to the Hash Table in PowerShell?
- Hash Table Data Structure in Javascript
- How to add/merge two hash tables in PowerShell?
- Search Element in an Javascript Hash Table
- Creating a hash table using Javascript
- Remove elements from Javascript Hash Table
- Loop through a hash table using Javascript
- What is Cryptographic Hash function in Information Security?
- Add elements to a hash table using Javascript
- What is Array in PowerShell?
- What is splatting in PowerShell?
- Implementing own Hash Table with Open Addressing Linear Probing in C++
- What is Search Tree and Hash Tables in compiler design?

Advertisements