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.

Remarks

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

Example

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

Private Sub GetServerLimits()

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

Try
    ' 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.
Finally
    ' TODO: Clean-up code goes here.
End Try

End Sub

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

Reference

IWMSServer Object (Visual Basic .NET)

IWMSServerLimits Object (Visual Basic .NET)