Autodesk Vault ProfessionalVault API

AddUploadedFileWithBehaviors Method

Autodesk.Connectivity.WebServicesDocumentServiceExtensions

Creates a File object with Behaviors based on binary data previously uploaded.

Required Permissions

FileCreate

Syntax

public override File AddUploadedFileWithBehaviors(
   System.long folderId,
   System.string fileName,
   System.string comment,
   System.DateTime lastWrite,
   FileAssocParam[] associations,
   BOM bom,
   FileClassification fileClass,
   System.bool hidden,
   ByteArray uploadticket,
   System.long copyBehaviorsFromFileMasterId
)
Public Overrides NotOverridable Function AddUploadedFileWithBehaviors( _
   ByVal folderId As System.Long, _
   ByVal fileName As System.String, _
   ByVal comment As System.String, _
   ByVal lastWrite As System.Date, _
   ByVal associations() As FileAssocParam, _
   ByVal bom As BOM, _
   ByVal fileClass As FileClassification, _
   ByVal hidden As System.Boolean, _
   ByVal uploadticket As ByteArray, _
   ByVal copyBehaviorsFromFileMasterId As System.Long _
) As File

Parameters

NameDescription
folderIdThe Folder that the file is being added to.
fileNameThe name of the file as it will appear in the Vault.
commentText data to be associated with version 1 of the file.
lastWriteThe last time the file had been modified.
associationsThe associations on the file.
bomA bill of materials to associate with this file. Null should be passed in if there is no BOM
fileClassThe classification of the file.
hiddenIf true, the file should be hidden by the client.
uploadticketThe identifier for the uploaded binary data.
copyBehaviorsFromFileMasterIdThe Master ID of the file that the new file will copy its Behaviors from.

Return Value

A File object representing the file in the Vault.

Remarks

This function is used after the binary data has been uploaded through the FilestoreService. This function ties in the binary data with the Vault meta data to created the Vault representation of the file.

See Also