IWMSCacheProxyPlugin Object (C#)
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 (C#) 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.
using Microsoft.WindowsMediaServices.Interop;
using System.Runtime.InteropServices;
// Declare variables.
WMSServer Server;
IWMSCacheItems CacheItems;
IWMSCacheProxyPlugin CacheProxyPlugin;
IWMSPlugins Plugins;
try {
// Create a new WMSServer object.
Server = new WMSServerClass();
// Retrieve the IWMSPlugins object
// containing cache proxy plug-ins.
Plugins = Server.CacheProxy;
// Retrieve the IWMSCacheProxyPlugin object.
CacheProxyPlugin = (IWMSCacheProxyPlugin)Plugins[0];
}
catch (COMException comExc) {
// TODO: Handle COM exceptions.
}
catch (Exception e) {
// TODO: Handle exceptions.
}