创建自定义对象

$obj = [pscustomobject]@{a=1;b="";c=$null}

PS自定义对象二_PSCustomObject-LMLPHP

% 选择属性列

$obj | gm |  % definition

( $obj |gm ).definition

$obj | gm |select -ExpandProperty definition

PS自定义对象二_PSCustomObject-LMLPHP

?过滤条件

PS自定义对象二_PSCustomObject-LMLPHP

'=$' 表示以 等号 结尾

PS创建自定义对象: http://www.cnblogs.com/dreamer-fish/p/3804168.html

05-11 11:31