GetPropertiesByEntityIds Method
Gets all the properties for a set of entities.
Required Permissions
ManagePropertyDefinition or [EntityClassId]ReadSyntax
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
| Name | Description |
|---|---|
| entityClassId | The associated entity class. |
| entityIds | An 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