Provides a response from a Uniform Resource Identifier (URI). This is an abstract class.
Assembly: System (in System.dll)
The class is the abstract base class from which protocol-specific response classes are derived. Applications can participate in request and response transactions in a protocol-agnostic manner using instances of the class while protocol-specific classes derived from carry out the details of the request.
The following example creates a instance from a WebRequest.
// Initialize the WebRequest. WebRequest^ myRequest = WebRequest::Create( "http://www.contoso.com" ); // Return the response. WebResponse^ myResponse = myRequest->GetResponse(); // Code to use the WebResponse goes here. // Close the response to free resources. myResponse->Close();
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98, Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.