I want to get all masterpages in client object model. For classic lists and libraries, I use
How do I do that to get the masterpage list (_catalogs/masterpage) ?
Thanks in advance.
The Title of the list is "Master Page Gallery". Remember that, that lists also contains things other than the master pages. For example, Page Layouts, images for the page layouts etc.
The link below shows how to filter master pages:
In the root web context, try:
context.Web.Lists.GetByTitle("Master Page Gallery")