SecurityCallContext class
Provides access to the current call's security context, which contains information about an object's callers. Using this class, you can also find out whether an object's direct caller is a member of a particular role and whether security is enabled for the object.
Only COM+ applications that use role-based security can access the SecurityCallContext class. For more information on roles, see Role-Based Security Administration.
When to implement
This class is implemented by COM+.
Requirement | Value |
---|---|
Interfaces | ISecurityCallersColl |
When to use
Use this class to access the methods of ISecurityCallContext.
Remarks
You cannot directly create a SecurityCallContext object. To use the methods of ISecurityCallContext, you must obtain a reference to its implementation by calling CoGetCallContext, supplying IID_ISecurityCallContext for the riid parameter.
To use this class from Microsoft Visual Basic, add a reference to the COM+ Services Type Library. A SecurityCallContext object can be declared using "COMSVCSLib.SecurityCallContext" as the class name; it is created by calling GetSecurityCallContext.
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows 2000 Professional [desktop apps only] |
Minimum supported server |
Windows 2000 Server [desktop apps only] |
Header |
|