isSecurityEnabled Method

Indicates whether or not security is enabled for the current object. MTS security is enabled unless the object is running in the client's process.

Provided By

Context class

boolean isSecurityEnabled ( );

Return Values

true

Security is enabled for this object.

false

Security is not enabled for this object.

Remarks

MTS security is enabled only if an object is running in a server process. This could be either because the object's component was configured to run in a client's process, or because the component and the client are in the same package. If the object is running in the client's process, there is no security checking and isSecurityEnabled will always return false.

See Also

Programmatic Security, Basic Security Methods, Secured Components

© 1999 Microsoft Corporation. All rights reserved. Terms of use.