FileSubmitConnection.FolderUrl Property
Gets or sets the Uniform Resource Locator (URL) of the folder to which the form will be submitted by the FileSubmitConnection object.
Namespace: Microsoft.Office.InfoPath
Assembly: Microsoft.Office.InfoPath (in microsoft.office.infopath.dll)
Syntax
'Declaration
'Usage
Property Value
The URL of the folder to which the form will be submitted.
Remarks
The Execute method of the FileSubmitConnection object will fail if the value of the FolderUrl property does not begin with either the "http:" or the "https:" prefix. The Execute method will also fail if the site specified by the FolderURL property is not available, or if the URL is not in the same security domain as the form template.
This member can be accessed only by forms running in the same domain as the currently open form, or by forms that have been granted cross-domain permissions.
This type or member can be accessed from code running in forms opened in Microsoft Office InfoPath 2007 or in a Web browser.
Example
The following example shows how to use the FolderUrl property of an instance of the FileSubmitConnection object to change the folder to which the form data will be submitted.
FileSubmitConnection submitConnection =
(FileSubmitConnection)(DataConnections["SharePoint Library"]);
submitConnection.FolderUrl = submitConnection.FolderUrl + @"data\";
Dim submitConnection As FileSubmitConnection =
DirectCast(DataConnections["SharePoint Library"], _
FileSubmitConnection)
submitConnection.FolderUrl = submitConnection.FolderUrl & "data\"
See Also
Reference
FileSubmitConnection Class
FileSubmitConnection Members
Microsoft.Office.InfoPath Namespace