IWMSServer.Limits (Visual Basic .NET)

The Limits property retrieves an IWMSServerLimits object that contains the limits specified for the server.

IWMSServerLimits = IWMSServer.Limits

Property Value

An IWMSServerLimits object.


This property is read-only. For more information about server limits, see the IWMSServerLimitsIWMSServerLimits Object (Visual Basic .NET).


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

Private Sub GetServerLimits()

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

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

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

Catch excCom As COMException
    ' TODO: Handle COM exceptions.
Catch exc As Exception
    ' TODO: Handle errors.
    ' TODO: Clean-up code goes here.
End Try

End Sub


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


IWMSServer Object (Visual Basic .NET)

IWMSServerLimits Object (Visual Basic .NET)