Пример #1
0
 protected Collection<PSPropertyInfo> GetSelectedProperties(PSObject psobj)
 {
     if (Options.Properties == null || Options.Properties.Length < 1)
     {
         var defProps = psobj.GetDefaultDisplayPropertySet();
         return defProps;
     }
     return psobj.SelectProperties(Options.Properties, ExecutionContext);
 }