FileSubmitConnection class

Represents a connection to submit form information to a SharePoint Foundation server or other server that supports DAV connections.

Inheritance hierarchy

System.Object
  Microsoft.Office.InfoPath.DataConnection
    Microsoft.Office.InfoPath.FileSubmitConnection

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

Syntax

'Declaration
Public MustInherit Class FileSubmitConnection _
    Inherits DataConnection
'Usage
Dim instance As FileSubmitConnection
public abstract class FileSubmitConnection : DataConnection

Remarks

The FileSubmitConnection class represents a data connection created in InfoPath using the Data Connection Wizard that specifies all the information necessary for submitting data to a SharePoint Foundation document library or other server that supports DAV connections.

The FileSubmitConnection object is accessible using the DataConnections property of the XmlForm class to return the connection from the DataConnectionCollection of the form template.

The FileSubmitConnection class provides the Filename property, which returns an XPathTypedValue object that evaluates to the file name that the current form will be given when the form is submitted by the FileSubmitConnection object. It also provides the FolderUrl property, which gets or sets the Uniform Resource Locator (URL) of folder to which the form will be submitted.

In addition to the default Execute method inherited from the DataConnection base class that performs a query operation using the values that were declaratively defined in InfoPath form template design mode, the FileSubmitConnection class also provides the FileSubmitConnection.Execute method, which allows you to specify a different source of data to submit.

The FileSubmitConnection type corresponds to the DAVAdapterObject class of the Microsoft Office InfoPath 2003 object model.

Thread safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See also

Reference

FileSubmitConnection members

Microsoft.Office.InfoPath namespace