Share via


FormTemplateCollection.UnregisterFormTemplate Method

Removes a registered form template from the server farm.

Namespace:  Microsoft.Office.InfoPath.Server.Administration
Assembly:  Microsoft.Office.InfoPath.Server (in Microsoft.Office.InfoPath.Server.dll)

Syntax

'Declaration
Public Sub UnregisterFormTemplate ( _
    fileFullName As String, _
    featureDefinition As SPFeatureDefinition _
)
'Usage
Dim instance As FormTemplateCollection
Dim fileFullName As String
Dim featureDefinition As SPFeatureDefinition

instance.UnregisterFormTemplate(fileFullName, _
    featureDefinition)
public void UnregisterFormTemplate(
    string fileFullName,
    SPFeatureDefinition featureDefinition
)

Parameters

  • fileFullName
    Type: System.String
    The full file name and path to the form template (.xsn) file to unregister.

Remarks

Removes converted files from the server farm and the form template item from the FormTemplateCollection collection. The UnregisterFormTemplate method should be used with form templates that have been registered. It will fail if used on form templates that have been uploaded. Use the UndeployFormTemplate(FormTemplate) method to remove uploaded form templates.

This method should only be called from the UnInstall 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

Microsoft.Office.InfoPath.Server.Administration Namespace