本文整理匯總了C#中System.ComponentModel.AsyncCompletedEventArgs.ToString方法的典型用法代碼示例。如果您正苦於以下問題:C# AsyncCompletedEventArgs.ToString方法的具體用法?C# AsyncCompletedEventArgs.ToString怎麽用?C# AsyncCompletedEventArgs.ToString使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類System.ComponentModel.AsyncCompletedEventArgs
的用法示例。
在下文中一共展示了AsyncCompletedEventArgs.ToString方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: deployment_UpdateCompleted
void deployment_UpdateCompleted(object sender, AsyncCompletedEventArgs e)
{
if (e.Error != null)
{
Debug.WriteLine(e.ToString());
return;
}
MainWindow w = this.windows[0];
w.UpdateAvailableLabel.Visibility = Visibility.Hidden;
}
示例2: DownloadFileCallback2
private void DownloadFileCallback2(Object sender, AsyncCompletedEventArgs e)
{
string reply = e.ToString();
Log.Debug("Device CGI returned info: " + reply);
}
示例3: smtpClient_SendCompleted
private void smtpClient_SendCompleted(object sender, AsyncCompletedEventArgs e)
{
try
{
if (e.Cancelled)
{
result = "發送已取消!";
}
if (e.Error != null)
{
result = "郵件發送失敗!" + "\n" + "技術信息:\n" + e.ToString();
}
else
{
result = "郵件成功發出!";
}
}
catch (Exception Ex)
{
result = "郵件發送失敗!" + "\n" + "技術信息:\n" + Ex.Message;
}
}