PrivilegeAssignmentCreateForAccount Method

Creates a new PrivilegeAssignment object for an account.

Namespace:  Dundas.BI.AccountServices
Assembly:  Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (24.3.0.1000)
Syntax
public static PrivilegeAssignment CreateForAccount(
	Guid accountId,
	PrivilegeAssignmentKind assignmentKind,
	Guid privilegeId
)

Parameters

accountId
Type: SystemGuid
The ID of the account.
assignmentKind
Type: Dundas.BI.AccountServicesPrivilegeAssignmentKind
Privilege assignment kind.
privilegeId
Type: SystemGuid
The privilege ID.

Return Value

Type: PrivilegeAssignment
Return a new PrivilegeAssignment object for account.
Exceptions
ExceptionCondition
ArgumentException

accountId is Empty.

-or-

privilegeId is Empty.

See Also