Autodesk Vault ProfessionalVault API

AssignFileToItem Method

Autodesk.Connectivity.WebServicesItemService

Assign a file to an item revision

Syntax

public Item AssignFileToItem(
   System.long itemRevId,
   System.long fileId
)
Public Function AssignFileToItem( _
   ByVal itemRevId As System.Long, _
   ByVal fileId As System.Long _
) As Item

Parameters

NameDescription
itemRevIdThe revision id of the item to assign to
fileIdThe id of the file to link the item to

Return Value

Either an uncommitted or committed item depending on the type of link created

Remarks

If a primary link was created the client should update the item and then commit it. If the returned item is uncommitted the client can either commit the change or undo the change.

See Also