UpdateFileStates
EventNames:
UpdateFileStates_Restrictions
UpdateFileStates_Pre
UpdateFileStates_Post
Parameters
Type |
Name |
Description |
---|---|---|
files |
The files in Vault for which the lifefycle status changes/was changed. |
|
bool |
successful |
Post: |
Examples:
UpdateFileStates_Restrictions:
Register-VaultEvent -EventName UpdateFileStates_Restrictions -Action 'RestrictUpdateFileStates'
function RestrictUpdateFileStates($files) {
#Write event code here
}
UpdateFileStates_Pre:
Register-VaultEvent -EventName UpdateFileStates_Pre -Action 'PreUpdateFileStates'
function PreUpdateFileStates($files) {
#Write event code here
}
UpdateFileStates_Post:
Register-VaultEvent -EventName UpdateFileStates_Post -Action 'PostUpdateFileStates'
function PostUpdateFileStates($files, $successful) {
#Write event code here
}