Share via


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 SPFeatureDefinitionFormTemplateCollection.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.

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>

See also

Reference

FormTemplateCollection class

FormTemplateCollection members

RegisterFormTemplate overload

Microsoft.Office.InfoPath.Server.Administration namespace