CacheRequest2 Class

Provides an extension of the CacheRequest class that enables creation of a CacheRequest object based on a specified stream or a specified HttpWebRequest object and list of selectable tracks.

Inheritance Hierarchy

System.Object
  Microsoft.Web.Media.SmoothStreaming.CacheRequest
    Microsoft.Web.Media.SmoothStreaming.CacheRequest2

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

Syntax

'Declaration

Public Class CacheRequest2 _
    Inherits CacheRequest
'Usage

Dim instance As CacheRequest2
public class CacheRequest2 : CacheRequest
public ref class CacheRequest2 : public CacheRequest
type CacheRequest2 =  
    class
        inherit CacheRequest
    end
public class CacheRequest2 extends CacheRequest

The CacheRequest2 type exposes the following members.

Constructors

  Name Description
Public method CacheRequest2(Stream) Initializes a new instance of the CacheRequest2 class based on the specified stream.
Public method CacheRequest2(HttpWebRequest, IList<TrackInfo>) Initializes a new instance of the CacheRequest2 class based on the specified web request and list of selectable tracks.

Top

Properties

  Name Description
Public property CanonicalUri The Uri of the request. (Inherited from CacheRequest.)
Public property SelectableTracks Gets a list of suggested tracks for the cache plug-in to choose for downloading.
Public property WebRequest Gets or sets a web request that the media element downloader uses for downloading.

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 request 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 CacheRequest.)
Public method ToString (Inherited from Object.)
Public method WriteTo Writes the request to a Stream object. (Inherited from CacheRequest.)

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