Autodesk Vault ProfessionalVault API

AddUploadedFile Method

Autodesk.Connectivity.WebServicesDocumentService

Creates a File object based on binary data previously uploaded.

Required Permissions

FileCreate

Syntax

public override File AddUploadedFile(
   System.long folderId,
   System.string fileName,
   System.string comment,
   System.DateTime lastWrite,
   FileAssocParam[] associations,
   BOM bom,
   FileClassification fileClass,
   System.bool hidden,
   ByteArray uploadticket
)
Public Overrides NotOverridable Function AddUploadedFile( _
   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 _
) As File

Parameters

NameDescription
folderIdThe folder that the new 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 was modified on the client's machine.
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.

Return Value

A File object representing the Vault's view of that file.

See Also