schmintan

schmintan

  • NA
  • 64
  • 0

Explain whats going on with Deployment.CurrentDispatcher.BeginInvoke(() => ........

Oct 27 2010 10:55 AM

I am updating a text box on an xmal page. I was getting an issue "UnauthorizedAccessException when trying to update the UI.

A bit of searching and I found the solution was as follows:
 
Deployment.Current.Dispatcher.BeginInvoke(() =>
{
this.ResponseText.Text = "Using HttpWebRequest: " + resultString;
}
);

Its cool that my issue is resolved, but i need to understand whts going on above. I dont understand the syntax "() >={//code} . Can anyone break this down, for an absolute novice?

Answers (1)