Task does not contain definition for Result
<p>I am getting an error on this function</p>

<pre><code>private void Login_Click(object sender, RoutedEventArgs e)
{
    var auth0 = new Auth0Client("sample.auth0.com", "iRyFSIfQaeG4KXKd36D3CEPxkPyJ0Ekk");

    auth0.LoginAsync(new WindowWrapper(new WindowInteropHelper(this).Handle))
        .ContinueWith(
            t =&gt; { this.textBox1.Text = t.Result.Profile.ToString(); },
            TaskScheduler.FromCurrentSynchronizationContext());
}
</code></pre>

<p>Error Message:</p>

<blockquote>
  <p>Task does not contain a definition for result and no extension method
  accepting Result accepting first argument of type task could be found.</p>
</blockquote>

<p>The Error is thrown on the line <code>t.Result.Profile.ToString()</code></p>

<p>I am fairly new to Task Concept.Please help!</p>