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 |
IWMSBroadcastPublishingPoint.BroadcastStatus (C#)
IWMSBroadcastPublishingPoint.BroadcastStatus retrieves an enumeration value indicating the status of the broadcast publishing point.
Syntax
WMS_BROADCAST_PUBLISHING_POINT_STATUS = IWMSBroadcastPublishingPoint.BroadcastStatus;
Property Value
A member of a WMS_BROADCAST_PUBLISHING_POINT_STATUS enumeration type indicating the status of the publishing point. This must be one of the following values.
| Value | Description |
| WMS_BROADCAST_PUBLISHING_POINT_STOPPED | The publishing point is not currently running. |
| WMS_BROADCAST_PUBLISHING_POINT_STARTED_WITHOUT_DATA | The publishing point has been initialized and that the multicast data sinks are transmitting multicast beacons. |
| WMS_BROADCAST_PUBLISHING_POINT_STARTED | The publishing point is running. |
| WMS_BROADCAST_PUBLISHING_POINT_ARCHIVING | The publishing point is archiving content to a file. |
| WMS_BROADCAST_PUBLISHING_POINT_CHANGE_IN_PROGRESS | The publishing point is starting. |
If this property fails, it throws an exception.
| Number | Description |
| 0xC00D145AL | The publishing point has already been removed. |
Remarks
This property is read-only.
Example Code
using Microsoft.WindowsMediaServices.Interop;
using System.Runtime.InteropServices;
// Declare variables.
WMSServer Server;
IWMSBroadcastPublishingPoint BCPubPoint;
IWMSPublishingPoints PubPoints;
IWMSPublishingPoint PubPoint;
try {
// Create a new WMSServer object.
Server = new WMSServerClass();
// Retrieve the IWMSPublishingPoints object.
PubPoints = Server.PublishingPoints;
// Retrieve each publishing point and retrieve the
// IWMSBroadcastPublishingPoint object.
for (int i = 0; i < PubPoints.Count; i++)
{
PubPoint = PubPoints[i];
if (PubPoint.Type ==
WMS_PUBLISHING_POINT_TYPE.WMS_PUBLISHING_POINT_TYPE_BROADCAST)
{
BCPubPoint = (IWMSBroadcastPublishingPoint)PubPoint;
// Retrieve the current status of the publishing point.
// The status is reported as the result of a bitwise OR
// of any of the designated values.
WMS_BROADCAST_PUBLISHING_POINT_STATUS ppsStatus;
ppsStatus = BCPubPoint.BroadcastStatus;
break;
}
}
}
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 |