CacheResponse2 Constructor (Int64, String, WebHeaderCollection, Stream, HttpStatusCode, String, DateTime, Boolean)

Initializes a new instance of the CacheResponse2 class that is fully finalized and ready for use.

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

Syntax

'Declaration

Public Sub New ( _
    contentLength As Long, _
    contentType As String, _
    headers As WebHeaderCollection, _
    response As Stream, _
    statusCode As HttpStatusCode, _
    statusDescription As String, _
    downloadTime As DateTime, _
    continueProcessing As Boolean _
)
'Usage

Dim contentLength As Long
Dim contentType As String
Dim headers As WebHeaderCollection
Dim response As Stream
Dim statusCode As HttpStatusCode
Dim statusDescription As String
Dim downloadTime As DateTime
Dim continueProcessing As Boolean

Dim instance As New CacheResponse2(contentLength, _
    contentType, headers, response, statusCode, _
    statusDescription, downloadTime, _
    continueProcessing)
public CacheResponse2(
    long contentLength,
    string contentType,
    WebHeaderCollection headers,
    Stream response,
    HttpStatusCode statusCode,
    string statusDescription,
    DateTime downloadTime,
    bool continueProcessing
)
public:
CacheResponse2(
    long long contentLength, 
    String^ contentType, 
    WebHeaderCollection^ headers, 
    Stream^ response, 
    HttpStatusCode statusCode, 
    String^ statusDescription, 
    DateTime downloadTime, 
    bool continueProcessing
)
new : 
        contentLength:int64 * 
        contentType:string * 
        headers:WebHeaderCollection * 
        response:Stream * 
        statusCode:HttpStatusCode * 
        statusDescription:string * 
        downloadTime:DateTime * 
        continueProcessing:bool -> CacheResponse2
public function CacheResponse2(
    contentLength : long, 
    contentType : String, 
    headers : WebHeaderCollection, 
    response : Stream, 
    statusCode : HttpStatusCode, 
    statusDescription : String, 
    downloadTime : DateTime, 
    continueProcessing : boolean
)

Parameters

  • downloadTime
    Type: System.DateTime
    The time at which the response finished downloading. This value is used for computing the expiry time of the response.
  • continueProcessing
    Type: System.Boolean
    true to continue processing to the next module in case of a cache miss; otherwise, false.

Version Information

Silverlight

Supported in: 5

See Also

Reference

CacheResponse2 Class

CacheResponse2 Overload

Microsoft.Web.Media.SmoothStreaming Namespace