MoveFolder
EventNames:
MoveFolder_Restrictions
MoveFolder_Pre
MoveFolder_Post
Parameters
Type |
Name |
Description |
---|---|---|
folder |
The folder which should get / is moved. |
|
parentFolder |
The new parent folder where the folder should / is moved |
|
bool |
successful |
Post: |
Examples:
MoveFolder_Restrictions:
Register-VaultEvent -EventName MoveFolder_Restrictions -Action 'RestrictMoveFolder'
function RestrictMoveFolder($folder, $parentFolder) {
#Write event code here
}
MoveFolder_Pre:
Register-VaultEvent -EventName MoveFolder_Pre -Action 'PreMoveFolder'
function PreMoveFolder($folder, $parentFolder) {
#Write event code here
}
MoveFolder_Post:
Register-VaultEvent -EventName MoveFolder_Post -Action 'PostMoveFolder'
function PostMoveFolder($folder, $parentFolder, $successful) {
#Write event code here
}