[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: Issue Calling .NET inherited class (method not found)

  • Thread starter Thread starter bharold41
  • Start date Start date
Status
Not open for further replies.
B

bharold41

Guest
Mike and Laura, Thank You. This is very helpful. I am still beginner with .NET . I have downloaded ReflectionHelper files. Can you please help me with the syntax? I am getting runtime error with my attempt to use ReflectionHelper class. Runtime error: System.Argument.Exception: GenericArguments[0]. Microsoft.SharePoint.Client.ClientRuntimeContext on Void Load[t]. System.Linq.Expressions.Expression violates the constraint of type T C# syntax: Web web1 = clientContext.Web; clientContext.Load(web1); OpenEdge Program: USING Microsoft.SharePoint.Client.ClientContext. USING Microsoft.SharePoint.Client.Runtime.*. USING Microsoft.SharePoint.Client.*. DEFINE VARIABLE clientContextVar as ClientContext. DEFINE VARIABLE web1 AS Web. DEFINE VARIABLE oClientRunTime AS ClientRuntimeContext NO-UNDO . clientContextVar = new ClientContext(""). Web1 = clientContextVar:Web. oClientRunTime = CAST (ReflectionHelper:InvokeGenericMethod (clientContextVar, "Load":U, "Microsoft.SharePoint.Client.ClientRuntimeContext":U),ClientRuntimeContext) . /** oClientRunTime(web1). **/ message valid-object(oclientruntime) view-as alert-box. clientcontextVar:ExecuteQuery(). display web1:Title.

Continue reading...
 
Status
Not open for further replies.
Back
Top