< Back

ConvertTo-CInheritanceFlag

Sun Jan 12, 2020 9:06 pm

NAME ConvertTo-CInheritanceFlag



SYNOPSIS

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

value.





SYNTAX

ConvertTo-CInheritanceFlag [-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-CPropagationFlag` to get the propagation value.





PARAMETERS

-ContainerInheritanceFlag

The value to convert to an `InheritanceFlags` value.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

System.Security.AccessControl.InheritanceFlags.





-------------------------- EXAMPLE 1 --------------------------



PS C:\\>ConvertTo-CInheritanceFlag -ContainerInheritanceFlag ContainerAndSubContainersAndLeaves



Returns `InheritanceFlags.ContainerInherit|InheritanceFlags.ObjectInherit`.











RELATED LINKS

ConvertTo-CPropagationFlag

Grant-CPermission