IWMSPublishingPoint2 Object (C#)
Previous | Next |
IWMSPublishingPoint2 Object (C#)
You can use the IWMSPublishingPoint2 object to enable Startup Profile on a 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 the IWMSPublishingPoint object, the IWMSPublishingPoint2 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 IWMSPublishingPoint2 object.
using Microsoft.WindowsMediaServices.Interop; using System.Runtime.InteropServices; // Declare variables. IWMSServer Server = null; IWMSPublishingPoints PubPoints = null; IWMSPublishingPoint PubPoint = null; IWMSPublishingPoint2 PubPoint2 = null; try { // Create a new WMSServer object. Server = new WMSServerClass(); // Retrieve the IWMSPublishingPoints object. PubPoints = Server.PublishingPoints; // Retrieve each publishing point and retrieve the // IWMSPublishingPoint2 object. You can retrieve this // object only from a cache/proxy on-demand // or cache/proxy broadcast publishing point. for (int i = 0; i < PubPoints.Count; i++) { PubPoint = PubPoints[i]; if (PubPoint.Type == WMS_PUBLISHING_POINT_TYPE.WMS_PUBLISHING_POINT_TYPE_CACHE_PROXY_BROADCAST || PubPoint.Type == WMS_PUBLISHING_POINT_TYPE.WMS_PUBLISHING_POINT_TYPE_CACHE_PROXY_ON_DEMAND) { PubPoint2 = (IWMSPublishingPoint2)PubPoint; break; } } } catch (COMException comExc) { // TODO: Handle COM exceptions. } catch (Exception e) { // TODO: Handle exceptions. }
See Also
Previous | Next |