IWMSPublishingPointLimits Object (Visual Basic .NET)
You can use the IWMSPublishingPointLimits object to specify and retrieve the maximum bandwidth and number of connections supported by the server.
The IWMSPublishingPointLimits object exposes the following properties.
Property |
Description |
---|---|
ConnectedPlayers |
Specifies and retrieves the largest number of players that can be simultaneously connected to the publishing point. |
FECPacketSpan |
Specifies and retrieves the maximum number of data packets that can be buffered before error correction is applied. |
OutgoingDistributionBandwidth |
Specifies and retrieves the maximum total distribution bandwidth permitted for the publishing point. |
OutgoingDistributionConnections |
Specifies and retrieves the maximum number of permitted distribution connections for the publishing point. |
PerOutgoingDistributionConnectionBandwidth |
Specifies and retrieves the maximum bandwidth permitted for a distribution connection on the publishing point. |
PerPlayerConnectionBandwidth |
Specifies and retrieves the maximum bandwidth permitted for a player connection on the publishing point. |
PerPlayerRapidStartBandwidth |
Specifies and retrieves the rapid starting bandwidth permitted for a player connection on the publishing point. |
PlayerBandwidth |
Specifies and retrieves the maximum total player bandwidth permitted for the publishing point. |
PlayerCacheDeliveryRate |
Specifies and retrieves the maximum content-delivery rate that a player can request. |
Example
The following example illustrates how to retrieve an IWMSPublishingPointLimits 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 Limits As IWMSPublishingPointLimits
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 the IWMSPublishingPointLimits
' object for the publishing point.
Limits = PubPoint.Limits
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
Reference
IWMSPublishingPoint Object (Visual Basic .NET)
IWMSServerLimits Object (Visual Basic .NET)