IWMSPublishingPointTotalCounters Object (Visual Basic .NET)

banner art

Previous Next

IWMSPublishingPointTotalCounters Object (Visual Basic .NET)

You can use the IWMSPublishingPointTotalCounters object to retrieve totals for the number of connections to the server and the amount of bandwidth allocated to connections.

The IWMSPublishingPointTotalCounters object exposes the following properties and methods.

Property Method
Advertisements Retrieves the cumulative number of advertisements that have been streamed from playlists since the last reset.
AllCounters Retrieves an array that contains all of the counters supported by the object.
ConnectedPlayers Retrieves the total number of players connected to the publishing point since the last reset.
CountersStartTime Retrieves the date and time at which the publishing point started monitoring the total counters.
FileBytesRead Retrieves the total number of bytes read from the publishing point since the last reset.
LateReads Retrieves the total number of read operations that took over 400 milliseconds.
OutgoingDistributionBytesSent Retrieves the total number of bytes sent to distribution connections since the last reset.
OutgoingDistributionConnections Retrieves the total number of distribution connections established since the last reset.
PlayerBytesSent Retrieves the total number of bytes sent to players since the last reset.
StreamDenials Retrieves the total number of denied stream transmissions since the last reset.
StreamErrors Retrieves the total number of dropped-packet errors since the last reset.
StreamingPlayers Retrieves the total number of players that have streamed data from the publishing point since the last reset.
StreamingHTTPPlayers Retrieves the total number of players that have streamed data by using the HTTP protocol since the last reset.
StreamingRTSPPlayers Retrieves the total number of players that have streamed data by using the RTSP protocol since the last reset.
StreamingUDPPlayers Retrieves the total number of players that have streamed data by using the User Datagram Protocol (UDP) since the last reset.
StreamTerminations Retrieves the total number of stream transmissions that have been terminated since the last reset.
Method Description
Reset Resets the counters to the current values.

Example Code

The following example illustrates how to retrieve an IWMSPublishingPointTotalCounters object.

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

Private Sub RetrieveObj()

    ' Declare variables.
    Dim Server As WMSServer
    Dim PubPoints As IWMSPublishingPoints
    Dim PubPoint As IWMSPublishingPoint
    Dim TotalCounters As IWMSPublishingPointTotalCounters

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

    ' Retrieve the IWMSPublishingPoints object.
    PubPoints = Server.PublishingPoints

    ' Retrieve information about each publishing point.
    For Each PubPoint In PubPoints

        ' Retrieve a list of total statistics
        ' for the publishing point.
        TotalCounters = PubPoint.TotalCounters

    Next

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

See Also

Previous Next