Autodesk Vault ProfessionalVault API

GetPropertiesByEntityIds Method

Autodesk.Connectivity.WebServicesPropertyService

Gets all the properties for a set of entities.

Required Permissions

ManagePropertyDefinition or [EntityClassId]Read

Syntax

public PropInst[] GetPropertiesByEntityIds(
   System.string entityClassId,
   System.long[] entityIds
)
Public Function GetPropertiesByEntityIds( _
   ByVal entityClassId As System.String, _
   ByVal entityIds() As System.Long _
) As PropInst()

Parameters

NameDescription
entityClassIdThe associated entity class.
entityIdsAn array of entity IDs.

Return Value

An array of all property values for the given entities.

Example

using Autodesk.Connectivity.WebServices;

class VaultSDKSample
{
    private void GetProperties(PropertyService propSvc, File file, Item item)
    {
        PropInst[] fileProperties = propSvc.GetPropertiesByEntityIds("FILE", new long[] { file.Id });

        PropInst[] itemProperties = propSvc.GetPropertiesByEntityIds("ITEM", new long[] { item.Id });
    }
}
Imports Autodesk.Connectivity.WebServices

Class VaultSDKSample
    Private Sub GetProperties(propSvc As PropertyService, file As File, item As Item)
        Dim fileProperties As PropInst() = propSvc.GetPropertiesByEntityIds("FILE", New Long() {file.Id})

        Dim itemProperties As PropInst() = propSvc.GetPropertiesByEntityIds("ITEM", New Long() {item.Id})
    End Sub
End Class

See Also