# CheckinFile
**EventNames:**
- CheckinFile_Restrictions
- CheckinFile_Pre
- CheckinFile_Post
**Parameters**
| Type | Name | Description |
| ------------------------------------------------------------------ | ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [File](powervault:code_reference/objects/file) | file | The file which is / was checked in.
**Restrictions and Pre:**
In *Restrictions* and *Pre* you have the future data set on this object like `_NewName`, `_NewComment`, `_NewModDate`, `_NewClassification`, `_NewCheckedOut` and `_NewHidden`.
**Post:**
In *POST* you can retrieve the information from previous events by using the properties `_OldName`, `_OldComment`, `_OldModDate`, `_OldClassification`, `_OldCheckedOut` and `_OldHidden`. |
| [File[]](powervault:code_reference/objects/file) | dependencies | The file dependencies what this new checked-in file has. |
| [File[]](powervault:code_reference/objects/file) | attachments | The attachments what this new checked-in file has. |
| [FileBomRow[]](powervault:code_reference/objects/filebomrow) | fileBom | The bill of materials to associate with the checked-in file. |
| bool | successful | **Post**:
The information whether the Web Service call was successful or not is only available in *Post* events. |
**Examples:**\
CheckinFile_Restrictions:
```PowerShell
Register-VaultEvent -EventName CheckinFile_Restrictions -Action 'RestrictCheckinFile'
function RestrictCheckinFile($file, $dependencies, $attachments, $fileBom) {
#Write event code here
}
```
CheckinFile_Pre:
```PowerShell
Register-VaultEvent -EventName CheckinFile_Pre -Action 'PreCheckinFile'
function PreCheckinFile($file, $dependencies, $attachments, $fileBom) {
#Write event code here
}
```
CheckinFile_Post:
```PowerShell
Register-VaultEvent -EventName CheckinFile_Post -Action 'PostCheckinFile'
function PostCheckinFile($file, $dependencies, $attachments, $fileBom, $successful) {
#Write event code here
}
```