1

Iam trying to use

Umbraco.Web.Models.Mapping.TabsAndPropertiesResolver

method in umbraco custom section api however not able to include it.

using Umbraco.Web.Models.Mapping;
TabsAndPropertiesResolver.AddListView(display, "member", Services.DataTypeService, Services.TextService);

its showing me error message:

Error   61  'Umbraco.Web.Models.Mapping.TabsAndPropertiesResolver' is inaccessible due to its protection level  D:\Umb\Site\Development\Membership\Controllers\MembershipAdminController.cs 163 

any idea on assembly required for it?

Harshit
  • 397
  • 2
  • 6
  • 17
  • It seems that the `TabsAndPropertiesResolver` method is `protected` or `private` and therefore, you cannot call it outside the class where it was defined. – Felipe Cruz Apr 10 '16 at 17:02
  • Yep it's an internal class – Harshit Apr 10 '16 at 17:10
  • 1
    Could you give us a bit more of information in order to know what are you trying to achieve? What's the purpose of using that Umbraco internal method? – Felipe Cruz Apr 10 '16 at 17:16
  • Actually i am trying to mimic the member section code where they have list view.So i am trying to get the listview for a custom membership – Harshit Apr 10 '16 at 17:19
  • Take a look at the umbMemberListView project - may be able to use that as a base for whatever you're trying to do. https://github.com/robertjf/umbMemberListView – Robert Foster Apr 11 '16 at 11:41
  • Thanks a lot @RobertFoster :) – Harshit Apr 12 '16 at 04:40

0 Answers0