Forum Discussion
MNtobar
Sep 08, 2022Copper Contributor
Looking for insight #2
PS 5.1 PS Newb Are there documents that detail what methods and properties objects have? I was trying to research $error. I used get-member to discover some information about $error.clear(), but...
JoP_SG
Sep 09, 2022Copper Contributor
$error.GetType() shows that $error is from type ArrayList and ArrayList has a member function Clear(). So $error is a ArrayList that contains objects from type System.Management.Automation.ErrorRecord
- MNtobarSep 09, 2022Copper ContributorWell that is pretty slick. As an "old geezer" feeding a program (we didn't call them apps) a ?, or some invalid string, was the way you got it to tell you how to use it.
- MNtobarSep 09, 2022Copper ContributorWhoa!!! That is enough to keep the riff-raff out!! (Not disparaging riff-raff. Some of my best friends are riff-raff. 😉 ) It really helps that I am well practiced in "reading documentation" as well.
Lain, I appreciate your thorough, step by step, explanation. You did it exactly like I would have had the roles been reversed.