Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ DownloadStringAsync() [2/2]

void System.Net.WebClient.DownloadStringAsync ( Uri address,
object? userToken )
inline

Definition at line 1550 of file WebClient.cs.

1551 {
1552 ArgumentNullException.ThrowIfNull(address, "address");
1553 AsyncOperation asyncOperation = StartAsyncOperation(userToken);
1554 try
1555 {
1557 }
1558 catch (Exception ex) when (!(ex is OutOfMemoryException))
1559 {
1560 DownloadStringAsyncCallback(null, GetExceptionToPropagate(ex), asyncOperation);
1561 }
1562 }
Uri GetUri(string address)
Definition WebClient.cs:990
async void DownloadBitsAsync(WebRequest request, Stream writeStream, AsyncOperation asyncOp, Action< byte[], Exception, AsyncOperation > completionDelegate)
virtual WebRequest GetWebRequest(Uri address)
Definition WebClient.cs:428
WebRequest _webRequest
Definition WebClient.cs:76
static Exception GetExceptionToPropagate(Exception e)
void DownloadStringAsyncCallback(byte[] returnBytes, Exception exception, object state)
AsyncOperation StartAsyncOperation(object userToken)
Definition WebClient.cs:366

References System.Net.WebClient._webRequest, System.Net.WebClient.DownloadBitsAsync(), System.Net.WebClient.DownloadStringAsyncCallback(), System.Net.WebClient.GetExceptionToPropagate(), System.Net.WebClient.GetUri(), System.Net.WebClient.GetWebRequest(), System.Net.WebClient.StartAsyncOperation(), and System.ArgumentNullException.ThrowIfNull().