FormTemplateCollection.UpgradeFormTemplate method
Upgrades a form template that may have current open sessions.
Namespace: Microsoft.Office.InfoPath.Server.Administration
Assembly: Microsoft.Office.InfoPath.Server (in Microsoft.Office.InfoPath.Server.dll)
Syntax
'Declaration
Public Sub UpgradeFormTemplate ( _
solutionPath As String, _
upgradeType As FormTemplateCollection.UpgradeType _
)
'Usage
Dim instance As FormTemplateCollection
Dim solutionPath As String
Dim upgradeType As FormTemplateCollection.UpgradeType
instance.UpgradeFormTemplate(solutionPath, _
upgradeType)
public void UpgradeFormTemplate(
string solutionPath,
FormTemplateCollection.UpgradeType upgradeType
)
Parameters
solutionPath
Type: System.StringThe path and file name of the form template to upgrade.
upgradeType
Type: Microsoft.Office.InfoPath.Server.Administration.FormTemplateCollection.UpgradeTypeThe type of upgrade to perform. Values can be Gradual, if existing sessions should be allowed to continue until finished, or Overwrite to upgrade the form template immediately.