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.

Inheritance Hierarchy

System.Object
  Microsoft.Web.Media.SmoothStreaming.CacheResponse
    Microsoft.Web.Media.SmoothStreaming.CacheResponse2

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

Syntax

'Declaration

Public Class CacheResponse2 _
    Inherits CacheResponse
'Usage

Dim instance As CacheResponse2
public class CacheResponse2 : CacheResponse
public ref class CacheResponse2 : public CacheResponse
type CacheResponse2 =  
    class
        inherit CacheResponse
    end
public class CacheResponse2 extends CacheResponse

The CacheResponse2 type exposes the following members.

Constructors

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

Top

Properties

  Name Description
Public property ContentLength The length in bytes. (Inherited from CacheResponse.)
Public property ContentType A string object that identifies the content type. (Inherited from CacheResponse.)
Public property ContinueProcessing Gets 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 property ExpiryTime A DateTime object that contains the time of response expiration. (Inherited from CacheResponse.)
Public property Headers Gets a metadata collection of responses. (Inherited from CacheResponse.)
Public property PerceivedBandwidth Gets or sets the perceived bandwidth while downloading individual media chunks.
Public property Response A Stream object that contains the response. (Inherited from CacheResponse.)
Public property StatusCode An System.Net.HTTPStatusCode enumeration object. (Inherited from CacheResponse.)
Public property StatusDescription A string that contains the status description. (Inherited from CacheResponse.)
Public property UsedTrack Gets or sets the track the cache plug-in uses for downloading a media chunk.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ReadFrom Reads 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 method ToString (Inherited from Object.)
Public method WriteTo Writes the response to a Stream object. (Inherited from CacheResponse.)

Top

Version Information

Silverlight

Supported in: 5

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.

See Also

Reference

Microsoft.Web.Media.SmoothStreaming Namespace