Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 25064

SharePoint 2013 ( client object model) Quick Launch option is not enabling

$
0
0

hi all,

  I Am using client object model code to create a SharePoint List.List creation is working fine but list is not adding to quick launch.

            ClientContext clientContext = Getauthenticatedcontext(SiteUrl);
                if (clientContext != null)
                {
                    Web web = clientContext.Web;
                    ListCreationInformation myListCreationInformation = new ListCreationInformation();
                    myListCreationInformation.Title = ListName;
                    myListCreationInformation.TemplateType = ListType;
                    myListCreationInformation.Description = ListDescription;
   myListCreationInformation.QuickLaunchOption = QuickLaunchOptions.On;
                    List list = web.Lists.Add(myListCreationInformation);
                    clientContext.ExecuteQuery();
}

Can anyone please suggest a way to enable QuickLaunch option using ClientObjectModel code.

Thanks in advance

Regards,

Vysa


Viewing all articles
Browse latest Browse all 25064

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>