コード例 #1
0
 protected override void ProcessRecord()
 {
     try
     {
         base.ProcessRecord();
         PersistentVM persistentVM = PersistentVMHelper.LoadStateFromFile(this.Path);
         base.WriteObject(persistentVM, true);
     }
     catch (Exception exception1)
     {
         Exception exception = exception1;
         base.WriteError(new ErrorRecord(exception, string.Empty, ErrorCategory.CloseError, null));
     }
 }
コード例 #2
0
        internal void ExecuteCommand()
        {
            PersistentVM role = PersistentVMHelper.LoadStateFromFile(Path);

            WriteObject(role, true);
        }