Autodesk Vault ProfessionalVault API

AddFileWithBehaviors(Folder,String,String,DateTime,FileAssocParam[],BOM,FileClassification,Boolean,FileIteration,Stream) Method

Autodesk.DataManagement.Client.Framework.Vault.Services.ConnectionIFileManager

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 FileIteration

Parameters

NameDescription
parentThe parent folder to add the file to
filenameThe name of the file including the file extension
commentText data to be associated with version 1 of the file
lastWriteThe last time the file has been modified
associations
bomA bill of materials to associate with this file. Null should be passed in if there is no BOM.
fileClassificationThe classification of the file.
hiddenIf true, the file should be hidden by the client.
copyBehaviorsFromFileThe file that the new file will copy its Behaviors from.
contentsContents of the file

Return Value

A FileIteration object of the newly added file.

See Also