FileWebResponse Class
Provides a file system implementation of the WebResponse class.
Assembly: System (in System.dll)
| Name | Description | |
|---|---|---|
![]() | FileWebResponse(SerializationInfo^, StreamingContext) | Obsolete. Initializes a new instance of the FileWebResponse class from the specified instances of the SerializationInfo and StreamingContext classes. |
| Name | Description | |
|---|---|---|
![]() | ContentLength | Gets the length of the content in the file system resource.(Overrides WebResponse::ContentLength.) |
![]() | ContentType | Gets the content type of the file system resource.(Overrides WebResponse::ContentType.) |
![]() | Headers | Gets a collection of header name/value pairs associated with the response.(Overrides WebResponse::Headers.) |
![]() | IsFromCache | Gets a Boolean value that indicates whether this response was obtained from the cache.(Inherited from WebResponse.) |
![]() | IsMutuallyAuthenticated | Gets a Boolean value that indicates whether mutual authentication occurred.(Inherited from WebResponse.) |
![]() | ResponseUri | Gets the URI of the file system resource that provided the response.(Overrides WebResponse::ResponseUri.) |
![]() | SupportsHeaders | Gets a value that indicates whether the Headers property is supported by the FileWebResponse instance.(Overrides WebResponse::SupportsHeaders.) |
| Name | Description | |
|---|---|---|
![]() | Close() | Closes the response stream.(Overrides WebResponse::Close().) |
![]() | CreateObjRef(Type^) | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.(Inherited from MarshalByRefObject.) |
![]() | Dispose() | Releases the unmanaged resources used by the WebResponse object.(Inherited from WebResponse.) |
![]() | Dispose(Boolean) | Releases the unmanaged resources used by the WebResponse object, and optionally disposes of the managed resources.(Inherited from WebResponse.) |
![]() | Equals(Object^) | Determines whether the specified object is equal to the current object.(Inherited from Object.) |
![]() | Finalize() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.) |
![]() | GetHashCode() | Serves as the default hash function. (Inherited from Object.) |
![]() | GetLifetimeService() | Retrieves the current lifetime service object that controls the lifetime policy for this instance.(Inherited from MarshalByRefObject.) |
![]() | GetObjectData(SerializationInfo^, StreamingContext) | Populates a SerializationInfo with the data needed to serialize the target object.(Overrides WebResponse::GetObjectData(SerializationInfo^, StreamingContext).) |
![]() | GetResponseStream() | Returns the data stream from the file system resource.(Overrides WebResponse::GetResponseStream().) |
![]() | GetType() | |
![]() | InitializeLifetimeService() | Obtains a lifetime service object to control the lifetime policy for this instance.(Inherited from MarshalByRefObject.) |
![]() | MemberwiseClone() | |
![]() | MemberwiseClone(Boolean) | Creates a shallow copy of the current MarshalByRefObject object.(Inherited from MarshalByRefObject.) |
![]() | ToString() | Returns a string that represents the current object.(Inherited from Object.) |
| Name | Description | |
|---|---|---|
![]() ![]() | ISerializable::GetObjectData(SerializationInfo^, StreamingContext) | This API supports the product infrastructure and is not intended to be used directly from your code. Populates a SerializationInfo instance with the data needed to serialize the FileWebResponse. |
The FileWebResponse class implements the WebResponseabstract 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.
Available since 1.1
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.




