0

One of the properties (identity) in my PSObject object is a hashtable like this which is returned from PowerShell:

@{name=something; Number=87354}

This is what I'm trying to do:

foreach (PSObject ticket in tickets)
{
      var a = ticket.Properties["identity"].Value;
      System.Diagnostics.Debug.WriteLine(a.name); //error
}

How can I access the properties inside of the hashtable?

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
90abyss
  • 7,037
  • 19
  • 63
  • 94

0 Answers0