AddFileWithBehaviors(Folder,String,String,DateTime,FileAssocParam[],BOM,FileClassification,Boolean,FileIteration,Stream) Method
Adds a file to vault and associates it with a set of behaviors.
Syntax
FileIteration AddFileWithBehaviors(
Folder parent,
System.string filename,
System.string comment,
System.DateTime lastWrite,
FileAssocParam[] associations,
BOM bom,
FileClassification fileClassification,
System.bool hidden,
FileIteration copyBehaviorsFromFile,
System.IO.Stream contents
)Overloads Function AddFileWithBehaviors( _
ByVal parent As Folder, _
ByVal filename As System.String, _
ByVal comment As System.String, _
ByVal lastWrite As System.Date, _
ByVal associations() As FileAssocParam, _
ByVal bom As BOM, _
ByVal fileClassification As FileClassification, _
ByVal hidden As System.Boolean, _
ByVal copyBehaviorsFromFile As FileIteration, _
ByVal contents As System.IO.Stream _
) As FileIterationParameters
| Name | Description |
|---|---|
| parent | The parent folder to add the file to |
| filename | The name of the file including the file extension |
| comment | Text data to be associated with version 1 of the file |
| lastWrite | The last time the file has been modified |
| associations | |
| bom | A bill of materials to associate with this file. Null should be passed in if there is no BOM. |
| fileClassification | The classification of the file. |
| hidden | If true, the file should be hidden by the client. |
| copyBehaviorsFromFile | The file that the new file will copy its Behaviors from. |
| contents | Contents of the file |
Return Value
A FileIteration object of the newly added file.