Compartir a través de


IWMSBroadcastPublishingPoint.BroadcastStatus (Visual Basic .NET)

IWMSBroadcastPublishingPoint.BroadcastStatus retrieves an enumeration value indicating the status of the broadcast publishing point.

WMS_BROADCAST_PUBLISHING_POINT_STATUS = IWMSBroadcastPublishingPoint.BroadcastStatus

Property Value

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 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 returns an error number.

Number

Description

0xC00D145AL

The publishing point has already been removed.

Remarks

This property is read-only.

Example

Imports Microsoft.WindowsMediaServices.Interop
Imports System.Runtime.InteropServices

Private Sub GetStatus()

    ' Declare variables.
    Dim Server As WMSServer
    Dim PubPoints As IWMSPublishingPoints
    Dim PubPoint As IWMSPublishingPoint
    Dim BCPubPoint As IWMSBroadcastPublishingPoint
    Dim ppsStatus As WMS_BROADCAST_PUBLISHING_POINT_STATUS
    Dim i As Integer

Try
    ' Create the WMSServer object.
    Server = New WMSServer()

    ' Retrieve the IWMSPublishingPoints object.
    PubPoints = Server.PublishingPoints

    ' Retrieve each publishing point and retrieve the
    ' IWMSBroadcastPublishingPoint object.
    For i = 0 To Server.PublishingPoints.Count – 1

        PubPoint = PubPoints.Item(i)
        If PubPoint.Type = WMS_PUBLISHING_POINT_TYPE.WMS_PUBLISHING_POINT_TYPE_BROADCAST Then
            BCPubPoint = PubPoint
            Exit For
        End If
    Next i

    ' 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.
    ppsStatus = BCPubPoint.BroadcastStatus

Catch excCom As COMException
    ' TODO: Handle COM exceptions.
Catch exc As Exception
    ' TODO: Handle errors.
Finally
    ' TODO: Clean-up code goes here.
End Try

End Sub

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

Reference

IWMSBroadcastPublishingPoint Object (Visual Basic .NET)

IWMSServerCurrentCounters Object (Visual Basic .NET)