using Microsoft.SharePoint.Client;
Microsoft.SharePoint.Client.dll;Microsoft.SharePoint.Client.RunTime.dll;
Microsoft.SharePoint.Client.dll;
Microsoft.SharePoint.Client.RunTime.dll;
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using Microsoft.SharePoint.Client;namespace CSOMSamples{ class Program { static void Main(string[] args) { //// String Variable to store the siteURL string siteURL = "http://c4968397007/"; //// Get the context for the SharePoint Site to access the data ClientContext clientContext = new ClientContext(siteURL); Web web = clientContext.Web; //// Get the collection of navigation nodes from the quick launch bar NavigationNodeCollection quickLaunchColl = web.Navigation.QuickLaunch; //// Describes a new navigation node to be created NavigationNodeCreationInformation nodeCreation = new NavigationNodeCreationInformation(); nodeCreation.Title = "Test Node"; nodeCreation.Url = "http://c4968397007/"; //// Add the new navigation node to the collection quickLaunchColl.Add(nodeCreation); clientContext.Load(quickLaunchColl); clientContext.ExecuteQuery(); } }}
Vijai Anand has been working in IT industry for over 5 years. He holds Bachelor's degree in Electronics and Communication Engineering. Vijai write articles and blogs related to SharePoint 2013, SharePoint 2010, Silv... Read more