CacheResponse2 Class


Provides an extension of the CacheResponse class that enables creation of a CacheResponse object that is based on a specified stream or is fully finalized and ready for use.


Namespace:  Microsoft.Web.Media.SmoothStreaming
Assembly:  Microsoft.Web.Media.SmoothStreaming (in Microsoft.Web.Media.SmoothStreaming.dll)

public class CacheResponse2 : CacheResponse

The CacheResponse2 type exposes the following members.

Public methodCacheResponse2(Stream, Boolean)Initializes a new instance of the CacheResponse2 class based on the specified stream.
Public methodCacheResponse2(Int64, String, WebHeaderCollection, Stream, HttpStatusCode, String, DateTime, Boolean)Initializes a new instance of the CacheResponse2 class that is fully finalized and ready for use.

Public propertyContentLengthThe length in bytes. (Inherited from CacheResponse.)
Public propertyContentTypeA string object that identifies the content type. (Inherited from CacheResponse.)
Public propertyContinueProcessingGets a Boolean value indicating whether cache response processing continues to the next cache module (including HTTP download) in case of a cache miss. (Inherited from CacheResponse.)
Public propertyExpiryTimeA DateTime object that contains the time of response expiration. (Inherited from CacheResponse.)
Public propertyHeadersGets a metadata collection of responses. (Inherited from CacheResponse.)
Public propertyPerceivedBandwidthGets or sets the perceived bandwidth while downloading individual media chunks.
Public propertyResponseA Stream object that contains the response. (Inherited from CacheResponse.)
Public propertyStatusCodeAn System.Net.HTTPStatusCode enumeration object. (Inherited from CacheResponse.)
Public propertyStatusDescriptionA string that contains the status description. (Inherited from CacheResponse.)
Public propertyUsedTrackGets or sets the track the cache plug-in uses for downloading a media chunk.

Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodReadFromReads the response from a Stream object. There is no default implementation for this method. Calling the method without implementing an override will result in a NotSupportedException. (Inherited from CacheResponse.)
Public methodToString (Inherited from Object.)
Public methodWriteToWrites the response to a Stream object. (Inherited from CacheResponse.)


Supported in: 5

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