string editUri = "https://docs.google.com/feeds/default/private/full/file%3A" + resId;
DocumentEntry docEntry = (DocumentEntry)dsServ1.Get(editUri);
docEntry.Title.Text = strNewName;
docEntry.MediaSource = new MediaFileSource("C:\\new.txt", "text/plain");
ResumableUploader uploader = new ResumableUploader();
// Start the update process.
ClientLoginAuthenticator oa = new ClientLoginAuthenticator("Komote", ServiceNames.Documents, strUsername, strPassword);
uploader.UpdateAsync(oa, docEntry, new object());
这段代码很好用。谢谢你的帮助。