IWMSIncomingCounters.AllocateRequestedBandwidth (C#)

The AllocateRequestedBandwidth method allocates bandwidth, in Kbps, for an incoming client connection.

IWMSIncomingCounters.AllocateRequestedBandwidth(  dwAllocatedBandwidth As UInt32


[in] UInt32 indicating the amount of bandwidth to allocate.

Return Value

This method does not return a value.


This method should be called any time that bandwidth needs to be allocated for an incoming client connection. If the allocated bandwidth requested does not exceed the limit specified by the IWMSServerLimits.IncomingBandwidth property, then the IWMSServerCurrentCounters.IncomingBandwidth counter will be updated with this value, otherwise the AllocateRequestedBandwidth method will fail.


Reference: Add a reference to Microsoft.WindowsMediaServices.

Namespace: Microsoft.WindowsMediaServices.Interop.

Assembly: Microsoft.WindowsMediaServices.dll.

Library: WMSServerTypeLib.dll.

Platform: Windows Server 2003, Enterprise Edition; Windows Server 2003, Datacenter Edition; Windows Server 2008.

See Also


IWMSIncomingCounters Object (C#)