編輯

共用方式為


VersionUpgradeEvent.SolutionVersion Property

Definition

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

public:
 property System::String ^ SolutionVersion { System::String ^ get(); };
public string SolutionVersion { get; }
member this.SolutionVersion : string
Public ReadOnly Property SolutionVersion As String

Property Value

Examples

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.<span class="label">SolutionVersion</span>);
 e.ReturnStatus = true;   
}

Remarks

This property can be used only during the OnVersionUpgrade event.

Applies to