This documentation is archived and is not being maintained.

FileWebResponse Class

Provides a file system implementation of the WebResponse class.

For a list of all members of this type, see FileWebResponse Members.


[Visual Basic]
Public Class FileWebResponse
   Inherits WebResponse
public class FileWebResponse : WebResponse
public __gc class FileWebResponse : public WebResponse
class FileWebResponse extends WebResponse

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


The FileWebResponse class implements the WebResponse abstract (MustInherit in Visual Basic) base class to return file system resources for the FileWebRequest class.

Client applications do not create FileWebResponse instances directly; instead, they are created by calling the GetResponse method on a FileWebRequest instance.

The GetResponseStream method returns a Stream instance that provides read-only access to a file system resource.

The FileWebResponse class relies on the File class for error handling and code access security.


Namespace: System.Net

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: System (in System.dll)

See Also

FileWebResponse Members | System.Net Namespace