API Questions on Kentico API.
Version 6.x > API > TreeProvider.Connection missing View modes: 
User avatar
Member
Member
positivepurchasing - 3/22/2013 4:54:37 AM
   
TreeProvider.Connection missing
Hi,

I'm trying to upgrade a site to v6, however I'm stuck on TreeProvider.Connection which is missing. I realise there is another thread about this but that doesn't have a solution.

Specifically
'... = new CMS.FileManager.AttachmentInfo(filePath, DocumentID, attachmentGuid, GeneralConnection);'

What do I use for the 'GeneralConnection'?

Cheers
Paul.

User avatar
Kentico Customer Success
Kentico Customer Success
kentico_martind2 - 3/22/2013 5:53:17 AM
   
RE:TreeProvider.Connection missing
Hello Paul,

This is caused by API changes in the version 6, as you can read in the API Documentation for v6:
Namespace CMS.FileManager exists only for backward compatibility reasons. All its classes were moved to library and namespace CMS.TreeEngine

For more details I would recommend you to download to download the API Documentation for v6 where you can see which methods with which parameters can you use after the upgrade.

e.g.:
AttachmentInfo ai = new CMS.TreeEngine.AttachmentInfo();

Best regards,
Martin Danko