I have the following code...
string serverName = "myServer"; string repositoryName = "myRepository"; var repository = new RepositoryRegistration(serverName, repositoryName); using (var session = new Session()) { session.LogIn(repository); EntryListingSettings settings = new EntryListingSettings(); settings.AddColumn(SystemColumn.Id); settings.AddColumn(SystemColumn.EntryType); FolderInfo info = Folder.GetFolderInfo("\\MyPath\\MySubPath", session); var listing = info.OpenFolderListing(settings, 1000); foreach (var item in listing) { var entryString = item.GetDatumAsString(SystemColumn.EntryType); EntryType entryType = (EntryType)Enum.Parse(typeof(EntryType), entryString); } }
I would expect the SystemColumn.EntryType to return one of the enum values, but when the entry that is found is an electronic document it returns "Adobe Acrobat Document". Is this a bug or it is expected that the EntryType value can be something other than one of the enumeration types.
If it is expected to be something other than one of the EntryTypes, any suggestions on how I can write this code to be able to return the EntryType as an enum?