VAF: Creating a Document Collection whose Membership Targets Latest Version

Hello, 

I have a vault app that creates a document collection. Is there a way of creating the document collection that guarantees that the collection targets the latest version of the member documents? Here is the code I'm working with currently:

MFPropertyValuesBuilder pvb = new MFPropertyValuesBuilder(vault);
pvb.SetClass(MFBuiltInDocumentClass.MFBuiltInDocumentClassOtherDocument);
pvb.SetTitle($"My Bid Document Collection");
pvb.Add(MFBuiltInPropertyDef.MFBuiltInPropertyDefCollectionMemberDocuments, MFDataType.MFDatatypeMultiSelectLookup, MyMemberDocuments_ObjVerExList.ToLookups());
ObjectVersionAndProperties ovap = vault.ObjectOperations.CreateNewObject((int)MFBuiltInObjectType.MFBuiltInObjectTypeDocumentCollection, pvb.Values); 

The document collections created by this code targets the specific version of the documents in my MyMemberDocuments_ObjVerExList list.

Thanks in advance for any help.

Parents Reply Children