Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The IWMSCacheProxyPlugin object enables you to prestuff a cache and retrieve specific cache items.
In addition to the methods inherited from IWMSPlugin, the IWMSCacheProxyPlugin object exposes the following properties and methods.
Property |
Description |
|---|---|
CacheItems |
Retrieves an IWMSCacheItemsIWMSCacheItems Object (Visual Basic .NET) containing a collection of IWMSCacheItem objects. |
Method |
Description |
|---|---|
PreStuff |
Fills a cache with content. |
Example
The following example illustrates how to retrieve an IWMSCacheProxyPlugin object.
Imports Microsoft.WindowsMediaServices.Interop
Imports System.Runtime.InteropServices
Private Sub RetrieveObj()
' Declare variables.
Dim Server As WMSServer
Dim Plugins As IWMSPlugins
Dim CacheProxyPlugin As IWMSCacheProxyPlugin
Try
' Create the WMSServer object.
Server = New WMSServer()
' Retrieve the IWMSPlugins object
' containing cache proxy plug-ins.
Plugins = Server.CacheProxy
' Retrieve the IWMSCacheProxyPlugin object.
CacheProxyPlugin = Plugins.Item(0)
Catch excCom As COMException
' TODO: Handle COM exceptions.
Catch exc As Exception
' TODO: Handle errors.
Finally
' TODO: Clean-up code goes here.
End Try
End Sub