Resumable Upload example don't work in vb.net

158 views
Skip to first unread message

Sérgio

unread,
Mar 30, 2012, 11:02:41 AM3/30/12
to google-docum...@googlegroups.com
Hello,

I'm trying to implement/follow this example in vb.net, but the following methods (at bold) don't work or appear to be apart of ru object, consequently this don't work in vb.net...

...
// Set up resumable uploader and notifications
ResumableUploader ru = new ResumableUploader(CHUNK_SIZE);
ru
.AsyncOperationCompleted += new AsyncOperationCompletedEventHandler(this.OnDone);
ru
.AsyncOperationProgress += new AsyncOperationProgressEventHandler(this.OnProgress);
...

Source:
http://code.google.com/apis/gdata/docs/resumable_upload.html

Claudio Cherubino

unread,
Mar 30, 2012, 12:54:22 PM3/30/12
to google-docum...@googlegroups.com
Hi Sergio,

Those in bold are not methods but instead events defined on the base class AsyncDataHandler:


You should use the VB.NET syntax to attach an handler to those events.

Claudio
Reply all
Reply to author
Forward
0 new messages