다음을 통해 공유


IWMSServerTotalCounters Object (Visual Basic .NET)

You can use the IWMSServerTotalCounters object to retrieve properties that contain information about totals that occur during server operation.

The IWMSServerTotalCounters object exposes the following properties and methods.

Property

Description

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 server since the last reset.

CountersStartTime

Retrieves the date and time at which the server started monitoring the total counters.

LateReads

Retrieves the total number of read operations that took over 400 milliseconds.

LateSends

Retrieves the total number of late send operations since the last reset.

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 content from the server 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.

UDPResendRequests

Retrieves the number of User Datagram Protocol (UDP) resend requests received since the last reset.

UDPResendsSent

Retrieves the number of UDP resend requests processed since the last reset.

Method

Description

Reset

Resets the counters to the current values.

Example

The following example illustrates how to retrieve an IWMSServerTotalCounters object.

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

Private Sub RetrieveObj()

    ' Declare variables.
    Dim Server As WMSServer
    Dim TotalCounters As IWMSServerTotalCounters

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

    ' Retrieve a list of total statistics
    ' for the server.
    TotalCounters = Server.TotalCounters

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

Reference

IWMSPublishingPoint Object (Visual Basic .NET)

IWMSServer Object (Visual Basic .NET)

Concepts

Server Object Model (Visual Basic .NET)