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: 1.4.0.0 (1.4.40.0)
Syntax
C# |
---|
public bool IsPrivilegeGrantedToUser( string privilegeName, string userName, PrivilegeNameFlags flags ) |
Visual Basic |
---|
Public Function IsPrivilegeGrantedToUser ( _ privilegeName As String, _ userName As String, _ flags As PrivilegeNameFlags _ ) As Boolean |
Visual C++ |
---|
public: bool IsPrivilegeGrantedToUser( String^ privilegeName, String^ userName, PrivilegeNameFlags flags ) |
Parameters
- privilegeName
- Type: System..::..String
The name of the privilege to check.
- userName
- Type: System..::..String
The name of the user.
- flags
- Type: BlueCieloECM.InnoCielo.Meridian.Server..::..PrivilegeNameFlags
A bitmask that is a combination of bit flags from PrivilegeNameFlags.
Return Value
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.