Autodesk Vault ProfessionalVault API

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

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

Adds a file to vault.

Syntax

FileIteration AddFile(
   Folder parent,
   System.string filename,
   System.string comment,
   System.DateTime lastWrite,
   FileAssocParam[] associations,
   BOM bom,
   FileClassification fileClassification,
   System.bool hidden,
   System.IO.Stream contents
)
Overloads Function AddFile( _
   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 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.
contentsContents of the file

Return Value

A FileIteration object of the newly added file.

See Also