Onedrive access and VB.Net



我有问题转换以下代码到vb.net。我目前在wp8上使用live SDK 5.6还有一些其他的例子,我可以使用vb.net吗?

  private async void GetMe()
        {
            try
            {
                LiveOperationResult operationResult = await this.liveClient.GetAsync("me");
                dynamic properties = operationResult.Result;
                this.tbResponse.Text = properties.first_name + " " + properties.last_name;
            }
            catch (LiveConnectException e)
            {
                this.tbResponse.Text = e.ToString();
            }
        }

我认为这应该工作(使用teleerik转换器):

Private Sub GetMe()
    Try
        Dim operationResult As LiveOperationResult = Await Me.liveClient.GetAsync("me")    
        Dim properties As dynamic = operationResult.Result
        Me.tbResponse.Text = properties.first_name + " " + properties.last_name
    Catch e As LiveConnectException
        Me.tbResponse.Text = e.ToString()
    End Try
End Sub

最新更新