As mentioned in the above link, the first parameter is SaveResultAs is filename:
"FileName The file path (when exporting to XML or MHT) or folder path (when exporting to XML or HTML) to save the log to. If the parent folders do not exist, they will be created."
You just have to pass the URL of a network shared folder as the filename parameter when calling the method.
I recommend creating subfolders with with something like \\server\shareName\ProjectName\Date\Time so you don't overwite old logs and have an easily viewable history.