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 (26.2.0.1000)
Syntax
public static PrivilegeAssignment CreateForAccount(
	Guid accountId,
	PrivilegeAssignmentKind assignmentKind,
	Guid privilegeId
)

Parameters

accountId  Guid
The ID of the account.
assignmentKind  PrivilegeAssignmentKind
Privilege assignment kind.
privilegeId  Guid
The privilege ID.

Return Value

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

accountId is Empty.

-or-

privilegeId is Empty.

See Also