Visual Basic (Declaration) | |
---|---|
Public Event OpenReadCompleted As EventHandler(Of ArcGISWebClient.OpenReadCompletedEventArgs) |
C# | |
---|---|
public event EventHandler<ArcGISWebClient.OpenReadCompletedEventArgs> OpenReadCompleted |
Use the ArcGISWebClient.DownloadStringAsync Method / ArcGISWebClient.DownloadStringCompleted Event to process (read/write) text such as: JSON, XAML, XML, and HTML.
Use the ArcGISWebClient.OpenReadAsync Method / ArcGISWebClient.OpenReadCompleted Event to process (read/write) binary streams of data such as: images, files (.doc, .pdf, .exe), music, movies, etc.
The event handler receives an argument of type ArcGISWebClient.OpenReadCompletedEventArgs containing data related to this event. The following ArcGISWebClient.OpenReadCompletedEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Cancelled (Inherited from System.ComponentModel.AsyncCompletedEventArgs) | Gets a value indicating whether an asynchronous operation has been canceled. |
Error (Inherited from System.ComponentModel.AsyncCompletedEventArgs) | Gets a value indicating which error occurred during an asynchronous operation. |
Result | Gets a readable stream that contains data downloaded by a ArcGISWebClient.OpenReadAsync method. |
UserState (Inherited from System.ComponentModel.AsyncCompletedEventArgs) | Gets the unique identifier for the asynchronous task. |
Target Platforms:Windows Phone 7