AddFolder
EventNames:
AddFolder_Restrictions
AddFolder_Pre
AddFolder_Post
Parameters
Type |
Name |
Description |
---|---|---|
folder |
The folder which should get / is added. |
|
parentFolder |
The parent folder where the new folder will be / is added. |
|
bool |
successful |
Post: |
Examples:
AddFolder_Restrictions:
Register-VaultEvent -EventName AddFolder_Restrictions -Action 'RestrictAddFolder'
function RestrictAddFolder($folder, $parentFolder) {
#Write event code here
}
AddFolder_Pre:
Register-VaultEvent -EventName AddFolder_Pre -Action 'PreAddFolder'
function PreAddFolder($folder, $parentFolder) {
#Write event code here
}
AddFolder_Post:
Register-VaultEvent -EventName AddFolder_Post -Action 'PostAddFolder'
function PostAddFolder($folder, $parentFolder, $successful) {
#Write event code here
}