MobileForms Toolkit Documentation

GeoMap.DownloadMap Method 

Initializes the synchronous map image request.

public Stream DownloadMap();

Return Value

A Stream object containing the resulting map image data.

Remarks

A call to this method blocks the calling thread until the request completes. It either returns a valid Stream object or throws a ServiceRequestException describing an error that occurred during the request processing.

Calling this method from the main thread is not recommended. Mind that the request makes a HTTP connection to the location service provider and downloads the result from Internet. Consider using the asynchronous method DownloadMapAsync to do this job on a background thread.

Exceptions

Exception TypeCondition
ServiceRequestExceptionMap image request failed
NotSupportedExceptionA service provider specified by ServiceProvider property does not support this kind of service.

See Also

GeoMap Class | Resco.Location.Services.Map Namespace