Navigation
API > API/Developer > API/Developer/CollectionManager > API/Developer/CollectionManager/ICollectionContainer
Description
Check to see if the given collection is valid to be used as the parent of another collection. A collection may not be parented to itself, nor any of its current children.
| Name | IsValidParentCollection |
| Type | function |
| Header File | /Engine/Source/Developer/CollectionManager/Public/ICollectionContainer.h |
| Include Path | #include "ICollectionContainer.h" |
bool IsValidParentCollection
(
FName CollectionName,
ECollectionShareType::Type ShareType,
FName ParentCollectionName,
ECollectionShareType::Type ParentShareType,
FText * OutError
) const
true if the parent is considered valid for this collection.
Parameters
| Name | Remarks |
|---|---|
| CollectionName | The name of the collection to check the parent of. |
| ShareType | The way the collection is shared. |
| ParentCollectionName | The name of the parent collection to test against. |
| ParentShareType | The way the new parent collection is shared. |
| OutError | Optional human readable explanation of why the operation failed |