public static ObjectVersionAndProperties CreateSingleFileObject(this Vault vault, int objType, int classId, PropertyValues pvs, SourceObjectFile file, bool checkIn) { var classPV = MFPropertyUtils.Class(classId); pvs.Add(0, classPV); return(vault.ObjectOperations.CreateNewSFDObject(objType, pvs, file, checkIn)); }
public static ObjectVersionAndProperties CreateNewObject(this Vault vault, int objType, int classId, PropertyValues pvs, SourceObjectFiles files = null) { var classPV = MFPropertyUtils.Class(classId); pvs.Add(0, classPV); if (files == null || files.Count != 0) { var singleFilePV = MFPropertyUtils.SingleFile(false); pvs.Add(-1, singleFilePV); } return(vault.ObjectOperations.CreateNewObject(objType, pvs, files)); }