ConvertTo-InheritanceFlags

Converts a Carbon.Security.ContainerInheritanceFlags value to a System.Security.AccessControl.InheritanceFlags value.

Syntax

ConvertTo-InheritanceFlags [-ContainerInheritanceFlags] {Container | SubContainers | ContainerAndSubContainers | Leaves | ContainerAndLeaves | SubContainersAndLeaves | ContainerAndSubContainersAndLeaves | ChildContainers | ContainerAndChildContainers | ChildLeaves | ContainerAndChildLeaves | ChildContainersAndChildLeaves | ContainerAndChildContainersAndChildLeaves} [<CommonParameters>]

Description

The Carbon.Security.ContainerInheritanceFlags enumeration encapsulates oth System.Security.AccessControl.InheritanceFlags and System.Security.AccessControl.PropagationFlags. Make sure you also call ConvertTo-PropagationFlags to get the propagation value.

Related Commands

Parameters

Name Type Description Required? Pipeline Input Default Value
ContainerInheritanceFlags ContainerInheritanceFlags The value to convert to an InheritanceFlags value. true false

Return Values

System.Security.AccessControl.InheritanceFlags.

EXAMPLE 1

ConvertTo-InheritanceFlags -ContainerInheritanceFlags ContainerAndSubContainersAndLeaves

Returns InheritanceFlags.ContainerInherit|InheritanceFlags.ObjectInherit.