internal void Abort() {
if (m_ResError == null) {
m_ResError = new WebException(
NetRes.GetWebStatusString("net_requestaborted", WebExceptionStatus.RequestCanceled),
WebExceptionStatus.RequestCanceled);
}
ErrorEvent.Set();
m_ErrorOccured = true;
m_ErrorTimer = s_CancelErrorQueue.CreateTimer(s_CancelErrorCallback, this);
}