Autodesk Vault ProfessionalVault API

AddFileWithBehaviors(Folder,String,FileAssocParam[],BOM,FileClassification,Boolean,FileIteration,FilePathAbsolute) 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 comment,
   FileAssocParam[] associations,
   BOM bom,
   FileClassification classification,
   System.bool hidden,
   FileIteration copyBehaviorsFromFile,
   FilePathAbsolute localPathWithFileName
)
Overloads Function AddFileWithBehaviors( _
   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 copyBehaviorsFromFile As FileIteration, _
   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.
copyBehaviorsFromFileThe file that the new file will copy its Behaviors from.
localPathWithFileNameThe full local path of the file including the file's name

Return Value

A FileIteration object of the newly added file.

See Also