I am learning the simple string methods in PS (which are .NET’s, I am told).
So far, CompareTo, [string]::Compare, StartsWith, EndsWith, ToLower, ToUpper, Replace all work well – i.e., PS ISE recognizes them. But when I use Contains, I get an error message stating that this is not recognized as a valid cmdlet or function.
Indeed, when I type ‘Con …’ the cycling process does not pop up the usual anticipated list of valid names.
My configuration must be lacking something. I have PS 5.1.14409.1012 on Windows 7 (64-bit) with latest fixes.
Would be grateful for any advice, tips or references.
Thanks in advance!