internal static RenameComputerChangeInfo GetRenameComputerStatusObject(int errorcode, string newcomputername, string oldcomputername) { RenameComputerChangeInfo renameComputerChangeInfo = new RenameComputerChangeInfo(); renameComputerChangeInfo.OldComputerName = oldcomputername; renameComputerChangeInfo.NewComputerName = newcomputername; if (errorcode == 0) { renameComputerChangeInfo.HasSucceeded = true; } else { renameComputerChangeInfo.HasSucceeded = false; } return(renameComputerChangeInfo); }
internal static RenameComputerChangeInfo GetRenameComputerStatusObject(int errorcode, string newcomputername, string oldcomputername) { RenameComputerChangeInfo renameComputerChangeInfo = new RenameComputerChangeInfo(); renameComputerChangeInfo.OldComputerName = oldcomputername; renameComputerChangeInfo.NewComputerName = newcomputername; if (errorcode == 0) { renameComputerChangeInfo.HasSucceeded = true; } else { renameComputerChangeInfo.HasSucceeded = false; } return renameComputerChangeInfo; }