Autodesk Vault ProfessionalVault API

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

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

Adds a file from disk to vault.

Syntax

FileIteration AddFile(
   Folder parent,
   System.string comment,
   FileAssocParam[] associations,
   BOM bom,
   FileClassification classification,
   System.bool hidden,
   FilePathAbsolute localPathWithFileName
)
Overloads Function AddFile( _
   ByVal parent As Folder, _
   ByVal comment As System.String, _
   ByVal associations() As FileAssocParam, _
   ByVal bom As BOM, _
   ByVal classification As FileClassification, _
   ByVal hidden As System.Boolean, _
   ByVal localPathWithFileName As FilePathAbsolute _
) As FileIteration

Parameters

NameDescription
parentThe parent folder to add the file to
commentText data to be associated with version 1 of the file
associations
bomA bill of materials to associate with this file. Null should be passed in if there is no BOM.
classificationThe classification of the file.
hiddenIf true, the file should be hidden by the client.
localPathWithFileNameThe full local path of the file including the file's name

Return Value

A FileIteration object of the newly added file.

See Also