IWMSOnDemandPublishingPoint2 Object (C#)
Previous | Next |
IWMSOnDemandPublishingPoint2 Object (C#)
You can use the IWMSOnDemandPublishingPoint2 object to enable Startup Profile for an on-demand publishing point.
- **Note **This object is available only on Windows Server 2003, Enterprise Edition with Service Pack 1; Windows Server 2003, Datacenter Edition with Service Pack 1; and Windows Server 2008.
In addition to the methods and properties inherited from IWMSOnDemandPublishingPoint, the IWMSOnDemandPublishingPoint2 object exposes the following property.
Property | Description |
AllowStartupProfile | Specifies and retrieves a Boolean value that indicates whether the publishing point allows the use of Startup Profile. |
Example Code
The following example illustrates how to retrieve an IWMSOnDemandPublishingPoint2 object.
using Microsoft.WindowsMediaServices.Interop; using System.Runtime.InteropServices; // Declare variables. IWMSServer Server = null; IWMSPublishingPoints PubPoints = null; IWMSPublishingPoint PubPoint = null; IWMSOnDemandPublishingPoint2 ODPubPoint2 = null; try { // Create a new WMSServer object. Server = new WMSServerClass(); // Retrieve the IWMSPublishingPoints object. PubPoints = Server.PublishingPoints; // Retrieve each publishing point and retrieve the // IWMSOnDemandPublishingPoint2 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) { ODPubPoint2 = (IWMSOnDemandPublishingPoint2)PubPoint; break; } } } catch (COMException comExc) { // TODO: Handle COM exceptions. } catch (Exception e) { // TODO: Handle exceptions. }
See Also
Previous | Next |