Share via


FormTemplateCollection.ItemFromFile Method

Gets a FormTemplate object in the FormTemplateCollection collection using the file path.

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

Syntax

'Declaration
Public Function ItemFromFile ( _
    filePath As String _
) As FormTemplate
'Usage
Dim instance As FormTemplateCollection
Dim filePath As String
Dim returnValue As FormTemplate

returnValue = instance.ItemFromFile(filePath)
public FormTemplate ItemFromFile(
    string filePath
)

Parameters

  • filePath
    Type: System.String
    The full path to the location on the server of the form template (.xsn) file.

Return Value

Type: Microsoft.Office.InfoPath.Server.Administration.FormTemplate
A FormTemplate object.

See Also

Reference

FormTemplateCollection Class

FormTemplateCollection Members

Microsoft.Office.InfoPath.Server.Administration Namespace