Represents a form template.
Assembly: Microsoft.Office.InfoPath (in Microsoft.Office.InfoPath.dll)
The FormTemplate class implements properties for getting information about a form template, including its version number, its cache identifier, the Uniform Resource Identifier (URI) it was loaded from, and an XPathNavigator object positioned at the root of its form definition (.xsf) file. The FormTemplate class also implements a method for opening a file contained within the form template .xsn file.
In the following example, a reference is set to the FormTemplate object for the current form template, then the code displays the values of the Version, CacheId, and Uri properties of the form template.