try---catch异常处理

try
{
sc.Send(msg);
return;
}
catch (Exception ex)
{
//AlertInfo("发送失败," + ex);
return ;
}

原文地址:https://www.cnblogs.com/914556495wxkj/p/3657926.html