Client API: is there any enumeration for ObjectType?

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

Moderator: SourceGear

Post Reply
kucing
Posts: 3
Joined: Mon Oct 08, 2007 5:31 pm

Client API: is there any enumeration for ObjectType?

Post by kucing » Mon Oct 08, 2007 5:35 pm

Is there any enumeration for ObjectType property in VaultTxDetailHistoryItem? For example 1 seems to be path while 2 seems to be file. RequestType seems to have enumeration in VaultRequestType but I can't find VaultObjectType. Do I have to create my own for this purpose? Thanks.

jeremy_sg
Posts: 1821
Joined: Thu Dec 18, 2003 11:39 am
Location: Sourcegear
Contact:

Post by jeremy_sg » Tue Oct 09, 2007 7:40 am

ObjectType is a bitmask. VaultFSObjectDefine.TypeFolder and VaultFSObjectDefine.TypeFile are two of the fields that can be OR'd in to the ObjectType. Watch out for branched objects, because that's another field that can be OR'd.

kucing
Posts: 3
Joined: Mon Oct 08, 2007 5:31 pm

Post by kucing » Tue Oct 09, 2007 6:03 pm

Thanks. Let me try that.

jeremy_sg
Posts: 1821
Joined: Thu Dec 18, 2003 11:39 am
Location: Sourcegear
Contact:

Post by jeremy_sg » Wed Oct 10, 2007 9:33 am

You can also use the .Type field, which will only be 1 or 2 (FileType or FolderType.

kucing
Posts: 3
Joined: Mon Oct 08, 2007 5:31 pm

Post by kucing » Mon Oct 15, 2007 12:05 am

Working perfectly. Thanks. :D

Post Reply