IWMSIPList Object (Visual Basic .NET)
.gif)
| Previous | Next |
IWMSIPList Object (Visual Basic .NET)
The IWMSIPList object contains a collection of IWMSIPEntry objects used by the WMS IP Address Authorization plug-in to allow or disallow client connections based on IP addresses.
The IWMSIPList object exposes the following properties and methods.
| Property | Description |
| Count | Retrieves the number of IWMSIPEntry objects in the IWMSIPList collection. |
| Item | Retrieves a specific IWMSIPEntry object from the IWMSIPList collection. |
| length | Retrieves the number of IWMSIPEntry objects in the IWMSIPList collection. This method is included for JScript compatibility. |
| Method | Description |
| Add | Adds an IWMSIPEntry object to the IWMSIPList collection. |
| Remove | Removes a specific IWMSIPEntry object from the IWMSIPList collection. |
Example Code
The following example illustrates how to retrieve an IWMSIPList object.
Imports Microsoft.WindowsMediaServices.Interop
Imports System.Runtime.InteropServices
Private Sub RetrieveObj()
' Declare variables.
Dim Server As WMSServer
Dim Plugin As IWMSPlugin
Dim IPAdmin As IWMSIPAdmin
Dim IPList As IWMSIPList
Try
' Create the WMSServer object.
Server = New WMSServer()
' Retrieve the plug-in to be configured.
Plugin = Server.EventHandlers.Item("WMS IP Address Authorization")
' Retrieve the custom interface of the plug-in.
IPAdmin = Plugin.CustomInterface
' Retrieve the list of banned IP addresses.
IPList = IPAdmin.DisallowIP
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
See Also
| Previous | Next |