API: Get the actual version/object from an VaultLabelItemX

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
montek
Posts: 107
Joined: Mon Jan 05, 2004 8:46 am

API: Get the actual version/object from an VaultLabelItemX

Post by montek » Fri Oct 06, 2006 8:23 am

What I'm trying to do is to get the latest version of all all labeled files in a path. Most folks label things and refetch the entire label, but that's not how we work in our ASP.NET project.

I'm using the API and have successfully written a BeginLabelQuery to get all the labels for a particular file, which I can successfully loop through to determine that latest labeled one.

Once I've found it, though, I have VaultLabelItemX object with a bunch of properties, none of which seem to be a pointer to the ID of the actual object, which I could use to fetch the file. I see the path of the object, but I need to narrow in on a specific VERSION of the file.

This post tried to explain some of the properties and it was useful, but none of them are what I'm looking for. I was hoping that _nRootObjID would be it, but it never changes for each label on a given file, so I'm unable to use it to differentiate between the different versions.

jclausius
Posts: 3706
Joined: Tue Dec 16, 2003 1:17 pm
Location: SourceGear
Contact:

Post by jclausius » Fri Oct 06, 2006 9:25 am

Take a look at :

- VaultLabelItemX.ID
- VaultLabelIemX.Version
- VaultLabelItem.ObjVerID
Jeff Clausius
SourceGear

montek
Posts: 107
Joined: Mon Jan 05, 2004 8:46 am

Post by montek » Fri Oct 06, 2006 2:48 pm

Woah! Ya know, it makes it significantly harder to find these properties when you don't see them when debugging. Strange. Thank you so much, as always, Jeff.

Post Reply