Determines whether the user has the specified privilege.
Namespace: BlueCieloECM.InnoCielo.Meridian.ScriptingAssembly: BlueCieloECM.InnoCielo.Meridian (in BlueCieloECM.InnoCielo.Meridian.dll) Version: 1.4.0.0 (1.4.40.0)
Syntax
C# |
---|
public bool HasPrivilege( SPrivilegeKind type, DisposableObject enclosure ) |
Visual Basic |
---|
Public Function HasPrivilege ( _ type As SPrivilegeKind, _ enclosure As DisposableObject _ ) As Boolean |
Visual C++ |
---|
public: bool HasPrivilege( SPrivilegeKind type, DisposableObject^ enclosure ) |
Parameters
- type
- Type: BlueCieloECM.InnoCielo.Meridian.Scripting..::..SPrivilegeKind
The type of the privilege to check.
- enclosure
- Type: BlueCieloECM.InnoCielo.Meridian..::..DisposableObject
The object that defines the security enclosure for which the roles/privileges are evaluated. By default this is the work area of the document (or the parent folder when in the main area).
Return Value
A value indicating whether the user has the specified privilege.Remarks
The enclosure can be Document (same as Document.ParentFolder), Folder,
Vault (=RootFolder), WorkArea.
If enclosure is null, then the enclosure is the object the
BCSMetadata was initialized with.