A Sandcastle Documented Class Library

# PrivilegeAssignment CreateForAccount 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 (10.0.0.1002)
Syntax
C#
VB
C++
F#
Copy

    public static PrivilegeAssignment CreateForAccount(
    	Guid accountId,
    	PrivilegeAssignmentKind assignmentKind,
    	Guid privilegeId
    )

    Public Shared Function CreateForAccount (
    	accountId As Guid,
    	assignmentKind As PrivilegeAssignmentKind,
    	privilegeId As Guid
    ) As PrivilegeAssignment

    public:
    static PrivilegeAssignment^ CreateForAccount(
    	Guid accountId,
    	PrivilegeAssignmentKind assignmentKind,
    	Guid privilegeId
    )

    static member CreateForAccount :
            accountId : Guid *
            assignmentKind : PrivilegeAssignmentKind *
            privilegeId : Guid -> PrivilegeAssignment

#### Parameters

accountId
  Type: System
  Guid
  The ID of the account.
assignmentKind
  Type: Dundas.BI.AccountServices
  PrivilegeAssignmentKind
  Privilege assignment kind.
privilegeId
  Type: System
  Guid
  The privilege ID.

#### Return Value

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

Exception | Condition
--- | ---
ArgumentException | accountId is Empty. -or- privilegeId is Empty.

See Also

#### Reference

PrivilegeAssignment Class
Dundas.BI.AccountServices Namespace
Dundas.BI.FileSystem
ObjectPrivilegeIds