IFileSystemServiceSetPrivileges Method (Guid, ICollectionPrivilegeAssignment, PrivilegeInheritanceBehavior, PrivilegePropagationBehavior) |
Set an entry's access privileges.
Namespace:
Dundas.BI.FileSystem
Assembly:
Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (9.0.0.1000)
Syntaxvoid SetPrivileges(
Guid entryId,
ICollection<PrivilegeAssignment> privilegeAssignments,
PrivilegeInheritanceBehavior inheritanceBehavior,
PrivilegePropagationBehavior propagationBehavior
)
Sub SetPrivileges (
entryId As Guid,
privilegeAssignments As ICollection(Of PrivilegeAssignment),
inheritanceBehavior As PrivilegeInheritanceBehavior,
propagationBehavior As PrivilegePropagationBehavior
)
void SetPrivileges(
Guid entryId,
ICollection<PrivilegeAssignment^>^ privilegeAssignments,
PrivilegeInheritanceBehavior inheritanceBehavior,
PrivilegePropagationBehavior propagationBehavior
)
abstract SetPrivileges :
entryId : Guid *
privilegeAssignments : ICollection<PrivilegeAssignment> *
inheritanceBehavior : PrivilegeInheritanceBehavior *
propagationBehavior : PrivilegePropagationBehavior -> unit
Parameters
- entryId
- Type: SystemGuid
ID of the entry. - privilegeAssignments
- Type: System.Collections.GenericICollectionPrivilegeAssignment
The collection assignment to apply, or if no there should be no explicit assignments. - inheritanceBehavior
- Type: Dundas.BI.FileSystemPrivilegeInheritanceBehavior
Indicate whether to inherit parent's privilege assignments. - propagationBehavior
- Type: Dundas.BI.FileSystemPrivilegePropagationBehavior
Indicate how parent's privilege assignments should be propagated to children.
Exceptions| Exception | Condition |
|---|
| ArgumentOutOfRangeException | propagationBehavior is not one of the PrivilegePropagationBehavior values. |
| ArgumentException | entryId is Empty. |
| 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