Cancels a request to an Internet resource.
Assembly: System (in System.dll)
The method cancels a request to a resource. After a request is canceled, calling the GetResponse, BeginGetResponse, EndGetResponse, GetRequestStream, BeginGetRequestStream, or EndGetRequestStream method causes a WebException with the Status property set to RequestCanceled.
Note This member outputs trace information when you enable network tracing in your application. For more information, see Network Tracing in the .NET Framework.