How to call UpdateLicenseInfo and update UserData with an XML fragment
// This is the user data we want to set
string userData = "<Test>abc</Test><Data>mydata</Data>";
// We must escape the xml data
string escapedUserData = SecurityElement.Escape (userData);
// You can specify multiple properties in the licenseArguments tag. Here we're only setting one attribute.
// Note the UserData1 attribute value is prefixed with ย \" followed by a single quote ' and then suffixed with a single quote ' followed by \".
string licenseUpdateData = String.Format ("<licenseArguments UserData1=\"'{0}'\" />", escapedUserData);
// Call the web service
license.UpdateLicenseInfo (webServiceUrl, activationKey, licenseUpdateData, out response);
// Analyze the results
ILicenseInfo li = new LicenseInfo();
string msg = string.Empty;
if (target.ParseResults(response, ref li, ref msg))
{
}Last updated