DjVu Namespace > PrivAndPropSet Class : IsEnabled Method |
Public Function IsEnabled( _ ByVal privOrProp As PrivsAndProps _ ) As Boolean
Dim instance As PrivAndPropSet Dim privOrProp As PrivsAndProps Dim value As Boolean value = instance.IsEnabled(privOrProp)
public bool IsEnabled( PrivsAndProps privOrProp )
public: bool IsEnabled( PrivsAndProps privOrProp )
This method detemines whether the privilege/property is set or not.
The difference from IsPermitted Method is that this method just checks the values on the store and don't see whether the security is actually enforced on the user on the time of call.
When you edit user's privileges, you should use IsEnabled Method rather than IsPermitted Method but if you check user's permission on decoding application, you should use IsPermitted Method over than IsEnabled Method.
Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family