Share via


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

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 _
)
'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 instance As New CacheResponse(contentLength, _
    contentType, headers, response, statusCode, _
    statusDescription, downloadTime)
public CacheResponse(
    long contentLength,
    string contentType,
    WebHeaderCollection headers,
    Stream response,
    HttpStatusCode statusCode,
    string statusDescription,
    DateTime downloadTime
)
public:
CacheResponse(
    long long contentLength, 
    String^ contentType, 
    WebHeaderCollection^ headers, 
    Stream^ response, 
    HttpStatusCode statusCode, 
    String^ statusDescription, 
    DateTime downloadTime
)
new : 
        contentLength:int64 * 
        contentType:string * 
        headers:WebHeaderCollection * 
        response:Stream * 
        statusCode:HttpStatusCode * 
        statusDescription:string * 
        downloadTime:DateTime -> CacheResponse
public function CacheResponse(
    contentLength : long, 
    contentType : String, 
    headers : WebHeaderCollection, 
    response : Stream, 
    statusCode : HttpStatusCode, 
    statusDescription : String, 
    downloadTime : DateTime
)

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.

Version Information

Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

See Also

Reference

CacheResponse Class

CacheResponse Overload

Microsoft.Web.Media.SmoothStreaming Namespace