Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
FileWebResponse Members

FileWebResponse Members

Provides a file system implementation of the WebResponse class.

The following tables list the members exposed by the FileWebResponse type.

  Name Description
Protected method FileWebResponse Initializes a new instance of the FileWebResponse class from the specified instances of the SerializationInfo and StreamingContext classes.

  Name Description
Public property ContentLength Overridden. Gets the length of the content in the file system resource.
Public property ContentType Overridden. Gets the content type of the file system resource.
Public property Headers Overridden. Gets a collection of header name/value pairs associated with the response.
Public property IsFromCache  Gets a Boolean value that indicates whether this response was obtained from the cache.(Inherited from WebResponse.)
Public property IsMutuallyAuthenticated  Gets a Boolean value that indicates whether mutual authentication occurred.(Inherited from WebResponse.)
Public property ResponseUri Overridden. Gets the URI of the file system resource that provided the response.

(see also Protected Methods )
  Name Description
Public method Close Overridden. Closes the response stream.
Public method CreateObjRef  Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.)
Public method Equals  Overloaded. Determines whether two Object instances are equal. (Inherited from Object.)
Public method GetHashCode  Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.)
Public method GetLifetimeService  Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public method GetResponseStream Overridden. Returns the data stream from the file system resource.
Public method GetType  Gets the Type of the current instance. (Inherited from Object.)
Public method InitializeLifetimeService  Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (Inherited from Object.)
Public method ToString  Returns a String that represents the current Object. (Inherited from Object.)

  Name Description
Protected method Dispose Releases the unmanaged resources used by the FileWebResponse and optionally releases the managed resources.
Protected method Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Protected method GetObjectData Overridden. Populates a SerializationInfo with the data needed to serialize the target object.
Protected method MemberwiseClone  Overloaded. (Inherited from MarshalByRefObject.)

  Name Description
Explicit interface implementation Method System.IDisposable.Dispose Releases all resources used by the FileWebResponse.
Explicit interface implementation Method System.Runtime.Serialization.ISerializable.GetObjectData Populates a SerializationInfo instance with the data needed to serialize the FileWebResponse.

Community Additions

© 2015 Microsoft