IWMSAdminNetworkDataSourcePlugin.UDPPortRangeUpperBound (Visual Basic .NET)

banner art

Previous Next

IWMSAdminNetworkDataSourcePlugin.UDPPortRangeUpperBound (Visual Basic .NET)

The UDPPortRangeUpperBound property retrieves the upper bound of a specific UDP port range.

Syntax

  Integer = IWMSAdminNetworkDataSourcePlugin.UDPPortRangeUpperBound(Index)

Parameters

Index

[in] Integer containing the index of the UDP port range.

Property Value

Integer containing the upper bound of the range.

Remarks

This property is read-only.

Example Code

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

Private Sub GetUpperBound()

    ' Declare variables.
    Dim Server As WMSServer
    Dim Plugin As IWMSPlugin
    Dim AdminNetDataSrc As IWMSAdminNetworkDataSourcePlugin
    Dim iValue As Integer

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

    ' Retrieve the plug-in to be configured.
    Plugin = Server.DataSources.Item("WMS Network Data Source")

    ' Retrieve the custom interface of the plug-in.
    AdminNetDataSrc = Plugin.CustomInterface

    ' Retrieve the upper bound of the first port range.
    iValue = AdminNetDataSrc.UDPPortRangeUpperBound(0)

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

Previous Next