FormTemplateCollection.RegisterFormTemplate Method (String, SPFeatureDefinition)
Registers a form template on a server farm.
Namespace: Microsoft.Office.InfoPath.Server.Administration
Assembly: Microsoft.Office.InfoPath.Server (in Microsoft.Office.InfoPath.Server.dll)
Syntax
'Declaration
Public Shared Sub RegisterFormTemplate ( _
fileFullName As String, _
featureDefinition As SPFeatureDefinition _
)
'Usage
Dim fileFullName As String
Dim featureDefinition As SPFeatureDefinition
FormTemplateCollection.RegisterFormTemplate(fileFullName, _
featureDefinition)
public static void RegisterFormTemplate(
string fileFullName,
SPFeatureDefinition featureDefinition
)
Parameters
- fileFullName
Type: System.String
The full file name and path to the form template (.xsn) file to register.
- featureDefinition
Type: Microsoft.SharePoint.Administration.SPFeatureDefinition
The location and name of the SharePoint feature definition package.
Remarks
This method should only be called from the [OnInstall] event of the corresponding SharePoint feature package. The fileFullName can be found at <drive>:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\FEATURES\<feature ID>