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.
.gif)
| Previous | Next |
IWMSPublishingPoint.Type (C#)
The Type property retrieves an enumeration value that indicates the publishing point type.
Syntax
WMS_PUBLISHING_POINT_TYPE = IWMSPublishingPoint.Type;
Property Value
A member of a WMS_PUBLISHING_POINT_TYPE enumeration type indicating the publishing point type. This must be one of the following values.
| Value | Description |
| WMS_PUBLISHING_POINT_TYPE_ON_DEMAND | The publishing point is an on-demand publishing point. |
| WMS_PUBLISHING_POINT_TYPE_BROADCAST | The publishing point is a broadcast publishing point. |
| WMS_PUBLISHING_POINT_TYPE_CACHE_PROXY_ON_DEMAND | The publishing point is an on-demand publishing point that can be used for caching content. |
| WMS_PUBLISHING_POINT_TYPE_CACHE_PROXY_BROADCAST | The publishing point is a broadcast publishing point that can be used as a proxy. |
If this property fails, it throws an exception.
| Number | Description |
| 0xC00D145AL | The publishing point was already removed. |
Remarks
This property is read-only. You must specify the publishing point type when you use the IWMSPublishingPoints.Add method to create a publishing point.
Example Code
using Microsoft.WindowsMediaServices.Interop;
using System.Runtime.InteropServices;
// Declare variables.
WMSServer Server;
IWMSPublishingPoints PubPoints;
IWMSPublishingPoint PubPoint;
try {
// Create a new WMSServer object.
Server = new WMSServerClass();
// Retrieve the IWMSPublishingPoints object.
PubPoints = Server.PublishingPoints;
// Retrieve information about each publishing point.
for (int i = 0; i < PubPoints.Count; i++)
{
PubPoint = PubPoints[i];
// Retrieve the type of publishing point.
WMS_PUBLISHING_POINT_TYPE pptType;
pptType = PubPoint.Type;
if (pptType ==
WMS_PUBLISHING_POINT_TYPE.WMS_PUBLISHING_POINT_TYPE_BROADCAST)
{
// TODO: Handle broadcast publishing point.
}
if (pptType ==
WMS_PUBLISHING_POINT_TYPE.WMS_PUBLISHING_POINT_TYPE_CACHE_PROXY_BROADCAST)
{
// TODO: Handle cache proxy broadcast publishing point.
}
if (pptType ==
WMS_PUBLISHING_POINT_TYPE.WMS_PUBLISHING_POINT_TYPE_CACHE_PROXY_ON_DEMAND)
{
// TODO: Handle cache proxy on-demand publishing point.
}
if (pptType ==
WMS_PUBLISHING_POINT_TYPE.WMS_PUBLISHING_POINT_TYPE_ON_DEMAND)
{
// TODO: Handle on-demand publishing point.
}
}
}
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.
See Also
| Previous | Next |