Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
.gif)
| Previous | Next |
IWMSPublishingPointLimits Object (C#)
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 Code
The following example illustrates how to retrieve an IWMSPublishingPointLimits object.
using Microsoft.WindowsMediaServices.Interop;
using System.Runtime.InteropServices;
// Declare variables.
WMSServer Server;
IWMSPublishingPoints PubPoints;
IWMSPublishingPoint PubPoint;
IWMSPublishingPointLimits Limits;
try {
// Create a new WMSServer object.
Server = new WMSServerClass();
// Retrieve the IWMSPublishingPoints object.
PubPoints = Server.PublishingPoints;
// Retrieve information about each publishing point.
for (int i = 0; i < PubPoints.Count; i++)
{
PubPoint = PubPoints[i];
// Retrieve the IWMSPublishingPointLimits
// object for the publishing point.
Limits = PubPoint.Limits;
}
}
catch (COMException comExc) {
// TODO: Handle COM exceptions.
}
catch (Exception e) {
// TODO: Handle exceptions.
}
See Also
| Previous | Next |