IWMSCPPluginAdmin.ListenAllIPAddresses (Visual Basic .NET)
.gif)
| Previous | Next |
IWMSCPPluginAdmin.ListenAllIPAddresses (Visual Basic .NET)
The ListenAllIPAddresses property specifies and retrieves a Boolean value indicating whether the server must monitor all IP addresses for incoming client requests.
Syntax
IWMSCPPluginAdmin .ListenAllIPAddresses = Boolean Boolean = IWMSCPPluginAdmin.ListenAllIPAddresses
Property Value
A Boolean indicating whether all IP addresses must be monitored.
Example Code
Imports Microsoft.WindowsMediaServices.Interop
Imports System.Runtime.InteropServices
Private Sub DisableListening()
' Declare variables.
Dim Server As WMSServer
Dim Plugin As IWMSPlugin
Dim CPAdmin As IWMSCPPluginAdmin
Try
' Create the WMSServer object.
Server = New WMSServer()
' Retrieve the plug-in to be configured.
Plugin = Server.ControlProtocols.Item("WMS RTSP Server Control Protocol")
' Retrieve the custom interface of the plug-in.
CPAdmin = Plugin.CustomInterface
' Set a Boolean value indicating that the plug-in
' will be bound only to specific IP addresses.
CPAdmin.ListenAllIPAddresses = False
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 |