Compartir a través de


IWMSServerLimits Object (Visual Basic .NET)

You can use the IWMSServerLimits object to specify and retrieve the maximum bandwidth and number of connections supported by the server.

The IWMSServerLimits object exposes the following properties.

Property

Description

ConnectedPlayers

Specifies and retrieves the largest number of players that can be simultaneously connected to the server.

ConnectionRate

Specifies and retrieves the maximum rate of client connections permitted by the server.

CPUUtilizationDuringConnection

Specifies and retrieves the maximum CPU utilization permitted before new client connections to the server are denied.

DiagnosticEvents

Specifies and retrieves the maximum number of IWMSDiagnosticEvent objects that a specific IWMSDiagnosticEvents collection can contain.

IncomingBandwidth

Specifies and retrieves the maximum bandwidth allocated by the server for incoming connections.

OutgoingDistributionBandwidth

Specifies and retrieves the maximum total distribution bandwidth permitted by the server.

OutgoingDistributionConnections

Specifies and retrieves the maximum number of distribution connections permitted by the server.

PerOutgoingDistributionConnectionBandwidth

Specifies and retrieves the maximum bandwidth permitted for a single distribution connection.

PerPlayerConnectionBandwidth

Specifies and retrieves the maximum bandwidth permitted for a single player connection.

PlayerAcknowledgementTimeout

Specifies and retrieves the maximum length of time, in milliseconds, that a player is permitted to remain connected if the server has not received a message to maintain the connection.

PlayerBandwidth

Specifies and retrieves the maximum total player bandwidth permitted by the server.

PlayerInactivityTimeout

Specifies and retrieves the maximum length of time that a player is permitted to remain connected without receiving streamed content.

Example

The following example illustrates how to retrieve an IWMSServerLimits object.

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

Private Sub RetrieveObj()

    ' Declare variables.
    Dim Server As WMSServer
    Dim Limits As IWMSServerLimits

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

    ' Retrieve the IWMSServerLimits object for the server.
    Limits = Server.Limits

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

IWMSServer Object (Visual Basic .NET)

Concepts

Server Object Model (Visual Basic .NET)