Export (0) Print
Expand All

VersionUpgradeEvent.SolutionVersion property

Gets the version number of a Microsoft Office InfoPath form template.

Namespace:  Microsoft.Office.Interop.InfoPath
Assembly:  Microsoft.Office.Interop.InfoPath (in Microsoft.Office.Interop.InfoPath.dll)

string SolutionVersion { get; }

Property value

Type: System.String

This property can be used only during the OnVersionUpgrade event.

In the following example, the SolutionVersion property of the VersionUpgradeEventObject object is used to display the version number of an InfoPath form template in a message box:

public void OnVersionUpgrade(VersionUpgradeEvent e)
{
 thisXDocument.UI.Alert("The form version: " + e.DocumentVersion + 
  "\nThe form template version: " + e.SolutionVersion);
 e.ReturnStatus = true;   
}

Community Additions

ADD
Show:
© 2014 Microsoft