Skip to Content
0
Former Member
Dec 27, 2007 at 02:22 PM

Accessing attributes through API

16 Views

Can anyone provide me with sample code or hints about how to access the values of the taxonomy attributes through the API? I seem to be able to get the attributes themselves fine, but I want to get the actual values of the attributes.

I have this so far, and it seems to be getting me on the right track I think:

AttributeValueExArray attrArray = rs.GetAttributes(0, "pub_hier");

//Get the info from the attribute information

for (int i = 0; i < attrArray.GetCount(); i++){

AttributeInfo attrInfo = attrArray.GetAttributeValueExAt(i).GetAttributeInfo();

String alias = attrInfo.GetAlias();

String name = attrInfo.GetName();

int priority = attrInfo.GetPriority();

int imageId = attrInfo.GetImageID();

int attrId = attrInfo.GetID();

int type = attrInfo.GetType();

}