BCRoleBasedSecuredObjectIsPrivilegeGrantedToUser Method (String, String, PrivilegeNameFlags) |
Determines whether the user has a privilege with the specified name.
Namespace: BlueCieloECM.InnoCielo.Meridian.ServerAssembly: BlueCieloECM.InnoCielo.Meridian (in BlueCieloECM.InnoCielo.Meridian.dll) Version: 4.0.0.0 (4.0.19.0)
Syntaxpublic bool IsPrivilegeGrantedToUser(
string privilegeName,
string userName,
PrivilegeNameFlags flags
)
Public Function IsPrivilegeGrantedToUser (
privilegeName As String,
userName As String,
flags As PrivilegeNameFlags
) As Boolean
public:
bool IsPrivilegeGrantedToUser(
String^ privilegeName,
String^ userName,
PrivilegeNameFlags flags
)
member IsPrivilegeGrantedToUser :
privilegeName : string *
userName : string *
flags : PrivilegeNameFlags -> bool
Parameters
- privilegeName
- Type: SystemString
The name of the privilege to check. - userName
- Type: SystemString
The name of the user. - flags
- Type: BlueCieloECM.InnoCielo.Meridian.ServerPrivilegeNameFlags
A bitmask that is a combination of bit flags from PrivilegeNameFlags.
Return Value
Type:
Boolean
A value indicating whether the user has a privilege with the specified name.
Remarks
If flags has PRIVILEGE_NAME_CHECK_DOCTYPE flag then
the privilege name will be combined with the Name property value of the document type of
the object this method invoked on.
It is assumed that the object is a document and has a document type, otherwise the function will fail.
If DTS is OFF, the function will behave as if PRIVILEGE_NAME_USE_ORIGINAL
flag was specified.
See Also