VersionUpgradeEvent.DocumentVersion Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the version number of a Microsoft Office InfoPath form.
public:
property System::String ^ DocumentVersion { System::String ^ get(); };
public string DocumentVersion { get; }
member this.DocumentVersion : string
Public ReadOnly Property DocumentVersion As String
Property Value
Examples
In the following example, the DocumentVersion property of the VersionUpgradeEventObject object is used to display the version number of an InfoPath form in a message box:
public void OnVersionUpgrade(VersionUpgradeEvent e)
{
thisXDocument.UI.Alert("The form version: " + e.<span class="label">DocumentVersion</span> +
"\nThe form template version: " + e.SolutionVersion);
e.ReturnStatus = true;
}
Remarks
This property can be used only during the OnVersionUpgrade event.