IWMSServerCurrentCounters.PlayerSendRate (Visual Basic .NET)
Previous | Next |
IWMSServerCurrentCounters.PlayerSendRate (Visual Basic .NET)
The PlayerSendRate property retrieves the rate, in Kbps, at which content is being sent to players.
Syntax
Integer = IWMSServerCurrentCounters.PlayerSendRate
Property Value
Integer containing the rate.
Remarks
This property is read-only. The server uses a 1-second interval to calculate the rate. To calculate a more current value, use the IWMSServerTotalCounters.PlayerBytesSent property.
Example Code
Imports Microsoft.WindowsMediaServices.Interop Imports System.Runtime.InteropServices Private Sub GetPlayerSendRate() ' Declare variables. Dim Server As WMSServer Dim CurrentCounters As IWMSServerCurrentCounters Dim iValue As Integer Try ' Create the WMSServer object. Server = New WMSServer() ' Retrieve a list of current statistics ' for the server. CurrentCounters = Server.CurrentCounters ' Retrieve the rate at which content is being sent to ' client connections. iValue = CurrentCounters.PlayerSendRate 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
- IWMSServerCurrentCounters Object (Visual Basic .NET)
- IWMSServerTotalCounters.PlayerBytesSent (Visual Basic .NET)
Previous | Next |