Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

FileWebResponse Class

Provides a file system implementation of the WebResponse class.

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

System.Object
   System.MarshalByRefObject
      System.Net.WebResponse
         System.Net.FileWebResponse

[Visual Basic]
<Serializable>
Public Class FileWebResponse
   Inherits WebResponse
[C#]
[Serializable]
public class FileWebResponse : WebResponse
[C++]
[Serializable]
public __gc class FileWebResponse : public WebResponse
[JScript]
public
   Serializable
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.

Remarks

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.

Requirements

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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.