SessionDemandPrivilege Method |
Requires that the specified application privilege is granted to the session.
Namespace:
Dundas.BI.AccountServices
Assembly:
Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (8.0.2.1001)
Syntaxpublic void DemandPrivilege(
Guid applicationPrivilegeId
)
Public Sub DemandPrivilege (
applicationPrivilegeId As Guid
)
public:
void DemandPrivilege(
Guid applicationPrivilegeId
)
member DemandPrivilege :
applicationPrivilegeId : Guid -> unit
Parameters
- applicationPrivilegeId
- Type: SystemGuid
Application privilege ID.
Exceptions| Exception | Condition |
|---|
| ArgumentException | applicationPrivilegeId is Empty. |
| NoPrivilegeException | The session does not have the privilege being demanded. |
See Also