Share via


IWMSServerLimits.IncomingBandwidth (Visual Basic .NET)

banner art

Previous Next

IWMSServerLimits.IncomingBandwidth (Visual Basic .NET)

The IncomingBandwidth property specifies and retrieves the maximum bandwidth allocated by the server for incoming connections.

Syntax

  ServerLimits
  .IncomingBandwidth
  
  =
  
  Integer
Integer =
  
  ServerLimits
  .IncomingBandwidth

Property Value

Integer containing the maximum allocated bandwidth, in Kbps.

If this property fails, it returns an error number.

Number Description
0x80070057 Integer is an invalid argument.

Example Code

  Server As WMSServer
    Dim Limits As IWMSServerLimits
    Dim iValue As Integer

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

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

    ' Retrieve the maximum bandwidth allocated by
    ' the server for incoming connections.
    iValue = Limits.IncomingBandwidth

    ' Set the maximum bandwidth allocated by
    ' the server for incoming connections.
    Limits.IncomingBandwidth = 300










Requirements

Reference: Add a reference to Microsoft.WindowsMediaServices.

Namespace: Microsoft.WindowsMediaServices.Interop.

Assembly: Microsoft.WindowsMediaServices.dll.

Library: WMSServerTypeLib.dll.

Platform: Windows Server 2003 family, Windows Server 2008 family.

See Also

Previous Next