IWMSCacheProxyPlugin Object (Visual Basic .NET)
.gif)
| Previous | Next |
IWMSCacheProxyPlugin Object (Visual Basic .NET)
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 IWMSCacheItems object containing a collection of IWMSCacheItem objects. |
| Method | Description |
| PreStuff | Fills a cache with content. |
Example Code
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
See Also
| Previous | Next |