Determines whether the given user has the specified privilege.

Namespace: BlueCieloECM.InnoCielo.Meridian.Server
Assembly: BlueCieloECM.InnoCielo.Meridian (in BlueCieloECM.InnoCielo.Meridian.dll) Version: 1.4.0.0 (1.4.40.0)

Syntax

C#
public bool HasPrivilege(
	string userName,
	string enclosureID,
	string privilegeName
)
Visual Basic
Public Function HasPrivilege ( _
	userName As String, _
	enclosureID As String, _
	privilegeName As String _
) As Boolean
Visual C++
public:
bool HasPrivilege(
	String^ userName, 
	String^ enclosureID, 
	String^ privilegeName
)

Parameters

userName
Type: System..::..String
The name of the user. If nullNothingnullptra null reference (Nothing in Visual Basic) or an empty string, the current user is used.
enclosureID
Type: System..::..String
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: System..::..String
The name of the privilege to check.

Return Value

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