FileWebRequest.GetResponse Method ()

 

Returns a response to a file system request.

Namespace:   System.Net
Assembly:  System (in System.dll)

override GetResponse : unit -> WebResponse

Return Value

Type: System.Net.WebResponse

A WebResponse that contains the response from the file system resource.

Exception Condition
WebException

The request timed out.

The GetResponse method returns a WebResponse object that contains the response from the file system resource.

The GetResponse method provides synchronous access to the WebResponse. For asynchronous access, use the BeginGetResponse and EndGetResponse methods.

The following code example uses the GetResponse method to return a file system request response.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: