Click or drag to resize

DownloadServiceRetrieveTextFromUrl Method (DownloadServiceConfiguration, Uri, DownloadServiceDownloadCompletionHandlerString)

Retrieve text data from URL.

Namespace:  Avaya.ClientServices
Assembly:  AvayaClientServices (in AvayaClientServices.dll) Version: 550.0.60.0
Syntax
C#
public DownloadWatcher RetrieveTextFromUrl(
	DownloadServiceConfiguration downloadServiceConfiguration,
	Uri sourceURL,
	DownloadServiceDownloadCompletionHandler<string> completionHandler
)

Parameters

downloadServiceConfiguration
Type: Avaya.ClientServicesDownloadServiceConfiguration
Service configuration that will be used for this request.
sourceURL
Type: SystemUri
URL of the source file.
completionHandler
Type: Avaya.ClientServicesDownloadServiceDownloadCompletionHandlerString
The completion handler for this operation.

Return Value

Type: DownloadWatcher
DownloadWatcher object for monitoring download requests.
Remarks
The download limit is set to 5 MB. If a client needs to download files larger than 5 MB it should use DownloadFile(DownloadServiceConfiguration, Uri, String, DownloadServiceDownloadCompletionHandlerFileInfo). Otherwise, a successful result is not guaranteed. The operation can fail with DownloadServiceError.Failed error. Use this method only for downloading text files(Content-Type prefix "text" or "message"). Otherwise the operation will fail with DownloadServiceError.InvalidContentType error.
See Also