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.
You can use the IWMSOnDemandPublishingPoint object to describe the properties of a publishing point.
In addition to the methods and properties inherited from the IWMSPublishingPoint IWMSPublishingPoint Object (C#), the IWMSOnDemandPublishingPoint object exposes the following methods and properties.
Property |
Description |
|---|---|
AllowContentCaching |
Specifies and retrieves a Boolean value indicating whether content from the publishing point can be cached. |
DownloadBandwidth |
Reserved for future use. |
EnableClientWildcardDirectoryAccess |
Specifies and retrieves a Boolean value that indicates whether wildcard characters can be used to access files and directories. |
EnableDownload |
Reserved for future use. |
Method |
Description |
|---|---|
ExportXML |
Creates a file containing publishing point configuration data. |
Example
The following example illustrates how to retrieve an IWMSOnDemandPublishingPoint object.
using Microsoft.WindowsMediaServices.Interop;
using System.Runtime.InteropServices;
// Declare variables.
WMSServer Server;
IWMSPublishingPoints PubPoints;
IWMSPublishingPoint PubPoint;
IWMSOnDemandPublishingPoint ODPubPoint;
try {
// Create a new WMSServer object.
Server = new WMSServerClass();
// Retrieve the IWMSPublishingPoints object.
PubPoints = Server.PublishingPoints;
// Retrieve each publishing point and retrieve the
// IWMSOnDemandPublishingPoint object.
for (int i = 0; i < PubPoints.Count; i++)
{
PubPoint = PubPoints[i];
if (PubPoint.Type ==
WMS_PUBLISHING_POINT_TYPE.WMS_PUBLISHING_POINT_TYPE_ON_DEMAND)
{
ODPubPoint = (IWMSOnDemandPublishingPoint)PubPoint;
break;
}
}
}
catch (COMException comExc) {
// TODO: Handle COM exceptions.
}
catch (Exception e) {
// TODO: Handle exceptions.
}
See Also
Reference
IWMSPublishingPoint Object (C#)
IWMSPublishingPoints Object (C#)