ArcGIS Runtime SDK for Windows Phone - Library Reference
OpenReadCompleted Event
See Also  Send comments on this topic
ESRI.ArcGIS.Client Namespace > ArcGISWebClient Class : OpenReadCompleted Event

Occurs when an asynchronous operation to open a stream containing a resource completes.

Syntax

Visual Basic (Declaration) 
Public Event OpenReadCompleted As EventHandler(Of ArcGISWebClient.OpenReadCompletedEventArgs)

Remarks

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.

Event Data

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.

PropertyDescription
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.

Requirements

Target Platforms:Windows Phone 7

See Also

© ESRI, Inc. All Rights Reserved.