I have links in a SharePoint Online site page that I would like to retrieve and modify from within a C# application. I have been successful in using the SharePointPnPCoreOnline NuGet package to change links within a ClientSideText object, but I am stuck when I try to do the same with a ClientSideWebPart object. I can read the HTML (via the HtmlPropertiesData property) but I can't update it because it is a read-only property.
Any suggestions on how this can be done?
GetPublicInstancePropertyValue
andSetPublicInstancePropertyValue
method to get the HTML content and update the link and set it back?