A Sandcastle Documented Class Library

# IFileSystemService SetPrivileges Method (Guid, ICollection PrivilegeAssignment , PrivilegeInheritanceBehavior)

Set an entry's access privileges.

Namespace: Dundas.BI.FileSystem
Assembly: Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (10.0.0.1002)
Syntax
C#
VB
C++
F#
Copy

    void SetPrivileges(
    	Guid entryId,
    	ICollection<PrivilegeAssignment> privilegeAssignments,
    	PrivilegeInheritanceBehavior inheritanceBehavior
    )

    Sub SetPrivileges (
    	entryId As Guid,
    	privilegeAssignments As ICollection(Of PrivilegeAssignment),
    	inheritanceBehavior As PrivilegeInheritanceBehavior
    )

    void SetPrivileges(
    	Guid entryId,
    	ICollection<PrivilegeAssignment^>^ privilegeAssignments,
    	PrivilegeInheritanceBehavior inheritanceBehavior
    )

    abstract SetPrivileges :
            entryId : Guid *
            privilegeAssignments : ICollection<PrivilegeAssignment> *
            inheritanceBehavior : PrivilegeInheritanceBehavior -> unit

#### Parameters

entryId
  Type: System
  Guid
  ID of the entry.
privilegeAssignments
  Type: System.Collections.Generic
  ICollection
  PrivilegeAssignment
  The collection assignment to apply, or
  if no there should be no explicit assignments.
inheritanceBehavior
  Type: Dundas.BI.FileSystem
  PrivilegeInheritanceBehavior
  Indicate whether to inherit parent's privilege assignments.

Exceptions

Exception | Condition
--- | ---
ArgumentException | entryId is Empty.
ArgumentOutOfRangeException | inheritanceBehavior is not one of the PrivilegeInheritanceBehavior values.
InvalidOperationException | privilegeAssignments contains assignments for privileges which are not object privileges.
NotFoundException | The entry specified by entryId does not exist.
NoPrivilegeException | The caller does not have the FullControl privilege on the specified entry.
InvalidSessionException | The caller context is not associated with a valid session.

See Also

#### Reference

IFileSystemService Interface
SetPrivileges Overload
Dundas.BI.FileSystem Namespace
Dundas.BI.FileSystem
ObjectPrivilegeIds
IPrivilegeService
ObjectPrivileges
FileSystemEntry
Privileges
FileSystemEntry
PrivilegeInheritanceBehavior