IWMSServerLimits Object (C#)

banner art

Previous Next

IWMSServerLimits Object (C#)

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 Code

The following example illustrates how to retrieve an IWMSServerLimits object.

using Microsoft.WindowsMediaServices.Interop;
using System.Runtime.InteropServices;









    // Retrieve the IWMSServerLimits object for the server.
    ServerLimits = Server.Limits;
}
catch (COMException comExc) {
    // TODO: Handle COM exceptions.
}
catch (Exception e) {
    // TODO: Handle exceptions.
}

See Also

Previous Next