IWMSAccessControlEntry Object (Visual Basic .NET)

banner art

Previous Next

IWMSAccessControlEntry Object (Visual Basic .NET)

An access control list (ACL) is a list of access control entries (ACE). Each ACE created by a publishing point ACL plug-in specifies the read and write permissions for a publishing point. Clients can have permission to read the content from a publishing point, and servers can have permission to write content to a publishing point. A file system ACL plug-in specifies the read and write permissions for file system access control lists. The IWMSAccessControlEntry object is exposed by the WMS Publishing Points ACL plug-in.

The IWMSAccessControlEntry object exposes the following properties.

Property Description
AccessMask Specifies and retrieves an enumeration value indicating the access rights to a publishing point or file system.
Trustee Retrieves the name of the account or logon session to which the access control entry applies.

Example Code

The following example illustrates how to retrieve an IWMSAccessControlEntry 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
    Dim AccessCtrlEntry As IWMSAccessControlEntry
    Dim i As Integer

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

    For i = 0 To AccessCtrlList.Count - 1
        ' Retrieve the next entry in the list.
        AccessCtrlEntry = AccessCtrlList.Item(i)
    Next

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