Share via


IWMSCacheProxyPlugin Object (C#)

banner art

Previous Next

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 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.

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.
}

See Also

Previous Next