IWMSServerCurrentCounters.OutgoingDistributionSendRate (Visual Basic .NET)
The OutgoingDistributionSendRate property retrieves the rate, in Kbps, at which content is being sent to distribution connections.
Integer = IWMSServerCurrentCounters.OutgoingDistributionSendRate
Property Value
Integer representing the rate, in Kbps, at which bytes are being sent to outgoing distribution connections from this server.
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.OutgoingDistributionBytesSent property.
Example
Imports Microsoft.WindowsMediaServices.Interop
Imports System.Runtime.InteropServices
Private Sub GetSendRate()
' 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
' distribution connections.
iValue = CurrentCounters.OutgoingDistributionSendRate
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
IWMSServerCurrentCounters Object (Visual Basic .NET)
IWMSServerTotalCounters.OutgoingDistributionBytesSent (Visual Basic .NET)