Edit

Share via


FileSubmitConnection Class

Definition

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

public ref class FileSubmitConnection abstract : Microsoft::Office::InfoPath::DataConnection
public abstract class FileSubmitConnection : Microsoft.Office.InfoPath.DataConnection
type FileSubmitConnection = class
    inherit DataConnection
Public MustInherit Class FileSubmitConnection
Inherits DataConnection
Inheritance
FileSubmitConnection

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 Execute(XPathNavigator) 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.

Constructors

FileSubmitConnection()

Properties

Filename

Gets an XPathTypedValue that evaluates to the file name that the current form will be given when the form is submitted by the FileSubmitConnection object.

FolderUrl

Gets or sets the Uniform Resource Locator (URL) of the folder to which the form will be submitted by the FileSubmitConnection object.

Name

Gets the name of the data connection.

(Inherited from DataConnection)

Methods

Execute()

Depending on which ConnectionTypeConnection class it is called from, executes a submit or query operation on the data connection using the declaratively defined values for the submitted data, query parameters, or data to retrieve.

(Inherited from DataConnection)
Execute(XPathNavigator)

Overrides the default Execute() method to allow specifying a different source of data to submit.

Applies to