ConvertTo-InheritanceFlag

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

Syntax

ConvertTo-InheritanceFlag [-ContainerInheritanceFlag] {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-PropagationFlag to get the propagation value.

Related Commands

Parameters

Name Type Description Required? Pipeline Input Default Value
ContainerInheritanceFlag ContainerInheritanceFlags true false

Return Values

System.Security.AccessControl.InheritanceFlags.

EXAMPLE 1

ConvertTo-InheritanceFlag -ContainerInheritanceFlag ContainerAndSubContainersAndLeaves

Returns InheritanceFlags.ContainerInherit|InheritanceFlags.ObjectInherit.