Partager via


IWMSAccessControlList Object (Visual Basic .NET)

The IWMSAccessControlList object contains a collection of IWMSAccessControlEntry objects that you can use to specify access rights to a publishing point or file system. The IWMSAccessControlList object is used by the WMS Publishing Points ACL plug-in.

The IWMSAccessControlList object exposes the following properties and methods.

Property

Description

Count

Retrieves the number of IWMSAccessControlEntry objects in the IWMSAccessControlList collection.

Item

Retrieves a specific IWMSAccessControlEntryIWMSAccessControlEntry Object (Visual Basic .NET) from the IWMSAccessControlList collection.

length

Retrieves the number of IWMSAccessControlEntry objects in the IWMSAccessControlList collection. This method is provided for JScript compatibility.

Method

Description

Add

Adds a new IWMSAccessControlEntry object to the IWMSAccessControlList collection.

Remove

Removes an IWMSAccessControlEntry object from the IWMSAccessControlList collection.

Example

The following example illustrates how to retrieve an IWMSAccessControlList object.

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

Private Sub RetrieveObj()

    ' Declare variables.
    Dim Server As WMSServer
    Dim Plugin As IWMSPlugin
    Dim ACLCheckAdmin As IWMSACLCheckAdmin
    Dim AccessCtrlList As IWMSAccessControlList

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

    ' Retrieve the plug-in to be configured.
    Plugin = Server.EventHandlers.Item( _
         "WMS Publishing Points ACL Authorization")

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

    ' Retrieve the list of access control entries.
    AccessCtrlList = ACLCheckAdmin.AccessControlList

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

Concepts

System Plug-ins (Visual Basic .NET)