Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 251579

Re: Get-View Filter; What's wrong?

$
0
0

I fully agree with your first remark, the Get-View Filter and the way it behaves could be a bit more optimised and more intuitive.

 

The 2nd remark is imho more a PowerShell issue.

In PowerShell v3 this was addressed by adding the ability to use the Count property on all kinds of objects, not only arrays or lists.

In PowerShell v2 you had to use a bypass, something like this

$a = @("abc")

$a.Count

With the @(...) notation you force the scalar value into an array.


Viewing all articles
Browse latest Browse all 251579

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>