' System.Threading.Tasks.Task(Of Type)'无法转换为类型''

时间:2014-10-01 16:52:41

标签: vb.net multithreading visual-studio-2010

您好我收到以下错误,我似乎无法重新开始:

  

类型'System.Threading.Tasks.Task的值(Of   Google.Apis.Auth.OAuth2.UserCredential)'无法转换为   'Google.Apis.Auth.OAuth2.UserCredential'。

代码:

Using stream = New FileStream(client_Secrets, FileMode.Open, FileAccess.Read)
    credential = GoogleWebAuthorizationBroker.AuthorizeAsync(GoogleClientSecrets.Load(stream).Secrets, 
                 New YouTubeService.Scope() {YouTubeService.Scope.YoutubeReadonly}, 
                 "user", CancellationToken.None, New FileDataStore(Me.[GetType]().ToString()))
End Using

0 个答案:

没有答案