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.
- headers
Type: System.Net.WebHeaderCollection
A System.NetWebHeaderCollection.
- response
Type: System.IO.Stream
A Stream object that contains the response.
- statusCode
Type: System.Net.HttpStatusCode
An System.Net.HTTPStatusCode enumeration object.
- statusDescription
Type: System.String
A string that contains the status description.
- downloadTime
Type: System.DateTime
A DateTime object.
- 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