IWMSAdminNetworkDataSourcePlugin.ProxyPort (Visual Basic .NET)

The ProxyPort property retrieves the port number to use for a particular protocol to receive content from an upstream proxy server.

Integer = IWMSAdminNetworkDataSourcePlugin.ProxyPort(bstrProtocol)

Property Value

Integer containing the port number.

If this property fails, it throws an exception.

Number

Description

0xC00D002B

The bstrProtocol parameter must be HTTP or RTSP.

Arguments

bstrProtocol

[in] String containing the protocol. This must be HTTP or RTSP.

Remarks

This property is read-only.

Example

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

Private Sub GetProxyPort()

    ' 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 proxy port associated
    ' with the RTSP protocol.
    iValue = AdminNetDataSrc.ProxyPort("RTSP")

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

IWMSAdminNetworkDataSourcePlugin Object (Visual Basic .NET)

IWMSAdminNetworkDataSourcePlugin.SetProxyPort (Visual Basic .NET)