Role-Based Security

COM+ offers a role-based security model that groups Windows users into COM+ roles. This model relies on the NT user accounts (tokens) associated with executing code as the basis for identity. To gain access, these users must belong to a COM+ role that has been assigned access to the class.

This simple model is used to enforce basic access to your components.

Note

Note that the .NET Framework's code access security (see Appendix C) is independent from COM+ role-based security. In fact, .NET allows only one or the other. You cannot use both models simultaneously.

Adding and Associating Roles

You can programmatically add roles to a COM+ application and associate those roles to your methods. The SecurityRoleAttribute attribute ...

Get Visual Basic® Programmer's Guide to the .NET Framework Class Library now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.