BCRepositoryHasPrivilege Method (String, String, String, PrivilegeInfoFlags) |
Determines whether the given user has the specified privilege.
Namespace: BlueCieloECM.InnoCielo.Meridian.ServerAssembly: BlueCieloECM.InnoCielo.Meridian (in BlueCieloECM.InnoCielo.Meridian.dll) Version: 4.0.0.0 (4.0.19.0)
Syntaxpublic bool HasPrivilege(
string userName,
string enclosureID,
string privilegeName,
PrivilegeInfoFlags flags
)
Public Function HasPrivilege (
userName As String,
enclosureID As String,
privilegeName As String,
flags As PrivilegeInfoFlags
) As Boolean
public:
bool HasPrivilege(
String^ userName,
String^ enclosureID,
String^ privilegeName,
PrivilegeInfoFlags flags
)
member HasPrivilege :
userName : string *
enclosureID : string *
privilegeName : string *
flags : PrivilegeInfoFlags -> bool
Parameters
- userName
- Type: SystemString
The name of the user. If or an empty string, the current user is used.
- enclosureID
- Type: SystemString
The ID property value of an enclosure to get privileges from.
If the specified object is not an enclosure, the server will find an active enclosure for it,
taking into account the current context.
- privilegeName
- Type: SystemString
The name of the privilege to check.
- flags
- Type: BlueCieloECM.InnoCielo.Meridian.ServerPrivilegeInfoFlags
A bitmask that is a combination of bit flags from PrivilegeInfoFlags.
Return Value
Type:
Boolean
A value indicating whether the given user has the specified privilege.
Remarks
If the caller is asking for document privileges and DTS is ON,
the function will fail.
If the caller is asking for document-type privileges and DTS is OFF,
the function will fail.
See Also