windowsforms-devexpress-dot-xtraeditors-dot-pictureedit-dot-loadasync-x28-system-dot-string-x29.md
Downloading images passed as URLs to the LoadAsync method may create security issues. Review the following help topic and learn how to spot, analyze, and prohibit unwanted download requests:
Suppress Control Requests to Download Data from External URLs
Loads the specified image, asynchronously.
Namespace : DevExpress.XtraEditors
Assembly : DevExpress.XtraEditors.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
public Task LoadAsync(
string localPathOrUriString
)
Public Function LoadAsync(
localPathOrUriString As String
) As Task
| Name | Type | Description |
|---|---|---|
| localPathOrUriString | String |
The path for the image to display in the PictureEdit.
|
| Type | Description |
|---|---|
| Task |
The task.
|
Use the LoadAsync method to load large images or images on a network with slow connections. The LoadAsync method loads the specified image in a different thread.
The LoadInProgress property indicates whether the load operation is in progress. After the image has been loaded, the Picture Editor raises the LoadCompleted event.
Use the following properties to specify helper images:
Use the CancelLoadAsync() method to cancel the asynchronous image load.
See Also