IWMSServer.EnableReverseProxyMode (C#)
The EnableReverseProxyMode property specifies and retrieves a Boolean value indicating whether the server sends all requested content to cache and proxy plug-ins.
Server.EnableReverseProxyMode = bool;bool = Server.EnableReverseProxyMode;
Property Value
A Boolean value indicating whether all requests for content are sent to cache and proxy plug-ins.
Remarks
By default, the Boolean value is false.
Example
using Microsoft.WindowsMediaServices.Interop;
using System.Runtime.InteropServices;
// Declare variables.
WMSServer Server;
bool bVal;
try {
// Create a new WMSServer object.
Server = new WMSServerClass();
// Retrieve a Boolean value indicating whether the
// server sends all content to cache proxy plug-ins.
bVal = Server.EnableReverseProxyMode;
// Set a Boolean value indicating that the server
// should send all content to cache proxy plug-ins.
Server.EnableReverseProxyMode = true;
}
catch (COMException comExc) {
// TODO: Handle COM exceptions.
}
catch (Exception e) {
// TODO: Handle exceptions.
}
Requirements
Reference: Add a reference to Microsoft.WindowsMediaServices.
Namespace: Microsoft.WindowsMediaServices.Interop.
Assembly: Microsoft.WindowsMediaServices.dll.
Library: WMSServerTypeLib.dll.
Platform: Windows Server 2003 family, Windows Server 2008 family.