Share via


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

Initializes a new instance of the CacheResponse class from the parameters.

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 CacheResponse(contentLength, _
    contentType, headers, response, statusCode, _
    statusDescription, downloadTime, _
    continueProcessing)
public CacheResponse(
    long contentLength,
    string contentType,
    WebHeaderCollection headers,
    Stream response,
    HttpStatusCode statusCode,
    string statusDescription,
    DateTime downloadTime,
    bool continueProcessing
)
public:
CacheResponse(
    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 -> CacheResponse
public function CacheResponse(
    contentLength : long, 
    contentType : String, 
    headers : WebHeaderCollection, 
    response : Stream, 
    statusCode : HttpStatusCode, 
    statusDescription : String, 
    downloadTime : DateTime, 
    continueProcessing : boolean
)

Parameters

  • contentLength
    Type: System.Int64
    A long integer that contains the length of the response in bytes.
  • contentType
    Type: System.String
    A string object that identifies the content type.
  • statusDescription
    Type: System.String
    A string that contains the status description.
  • continueProcessing
    Type: System.Boolean
    A Boolean value indicating whether cache response processing continues to the next cache module (including HTTP download) in case of a cache miss. true if the cache response processing continues; otherwise, false.

Version Information

Silverlight

Supported in: 5

See Also

Reference

CacheResponse Class

CacheResponse Overload

Microsoft.Web.Media.SmoothStreaming Namespace