B
bharold
Guest
I am trying to convert following c# code to Openedge. C# code: ------------ using Microsoft.SharePoint.Client.Runtime; using Microsoft.SharePoint.Client; using System; namespace sharepoint_Demo { class Program { static void Main(string[] args) { ClientContext clientContext = new ClientContext(" http://mytestportal/"); Web web = clientContext.Web; clientContext.Load(web); clientContext.ExecuteQuery(); Console.WriteLine(web.Title); } } } Converted OpenEdge Code: --------------------------------------- using Microsoft.SharePoint.client.Runtime.*. using Microsoft.SharePoint.Client.*. using System.*. DEFINE VARIABLE clientContextVar AS ClientContext. DEFINE VARIABLE web1 AS Microsoft.SharePoint.Client.Web. clientContextVar = new ClientContext(" http://mytestportal"). Web1 = clientContextVar:Web. clientContextVar:Load(web1). /* <- Compile Error - could not locate element 'load' in the class Microsoft.Sharepoint.Client.ClientContext ( 12927) **/ clientcontextVar:ExecuteQuery(). display web1:Title. I am trying to use Sharepoint .NET assembly in the openedge program. I have converted a simple C# example to Openedge. C# example works fine in Visual Studio. But my OpenEdge code is not compiling: code snippent is giving me an error that could not locate element 'load' in the class Microsoft.Sharepoint.Client.ClientContext ( 12927). I see the Load method in Visual Studio for the ClientContext class. But When I view the same assembly in Class browser then I do not see Load method under Microsoft.SharePoint namespace anywhere. Here is the microsoft documentation for the load method: msdn.microsoft.com/.../microsoft.sharepoint.client.clientcontext_methods.aspx What am I missing? I am using OpenEdge 11.7. - Brady
Continue reading...
Continue reading...