object types.. ispublic isserial, what do they mean?

Ask your PowerShell-related questions, including questions on cmdlet development!
Forum rules
Do not post any licensing information in this forum.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Locked
User avatar
dan.potter
Posts: 709
Joined: Wed Oct 08, 2014 6:02 am

object types.. ispublic isserial, what do they mean?

Post by dan.potter »

I was playing around and found out these output different types, one serial one not.

PS H:\> (get-aduser me -properties proxyaddresses |select -ExpandProperty proxyaddresses).gettype()

IsPublic IsSerial Name BaseType
-------- -------- ---- --------
True True Object[] System.Array


PS H:\> ((get-aduser me -properties proxyaddresses).proxyaddresses).gettype()

IsPublic IsSerial Name BaseType
-------- -------- ---- --------
True False ADPropertyValueCollection System.Collections.CollectionBase

Locked