Selecting from System.Collections.Specialized.OrderedDictionary

Welcome Forums General PowerShell Q&A Selecting from System.Collections.Specialized.OrderedDictionary

This topic contains 0 replies, has 1 voice, and was last updated by  YCE 1 month, 2 weeks ago.

  • Author
    Posts
  • #118806
    YCE

    Participant
    Points: 12
    Rank: Member

    I created function that creates an ordered CustomObject which gets some details from a web url. I needed it ordered to make the results clearer. I was hoping I can now select some properties by the names I gave them but it turned it's not the case as when I GM'ed the result it reported as System.Collections.Specialized.OrderedDictionary. What can I do with it so I can pipe to select-object to call for my named properties?

     

    Update: I just found when I use [pscustomobject] rather than [ordered] it gives me exactly what I need.

You must be logged in to reply to this topic.