IWMSAccessControlList Object (C#)
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 IWMSAccessControlEntry object 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.
using Microsoft.WindowsMediaServices.Interop;
using System.Runtime.InteropServices;
// Declare variables.
WMSServer Server;
IWMSPlugin Plugin;
IWMSACLCheckAdmin ACLCheckAdmin;
IWMSAccessControlList AccessCtrlList;
try {
// Create a new WMSServer object.
Server = new WMSServerClass();
// Retrieve the plug-in to be configured.
Plugin = Server.EventHandlers[
"WMS Publishing Points ACL Authorization"];
// Retrieve the custom interface of the plug-in.
ACLCheckAdmin =
(IWMSACLCheckAdmin)Plugin.CustomInterface;
// Retrieve the list of access control entries.
AccessCtrlList = ACLCheckAdmin.AccessControlList;
}
catch (COMException comExc) {
// TODO: Handle COM exceptions.
}
catch (Exception e) {
// TODO: Handle exceptions.
}