FolderUrl property
Collapse the table of content
Expand the table of content

FileSubmitConnection.FolderUrl property

Office 2013 and later

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)

Public MustOverride Property FolderUrl As String
Dim instance As FileSubmitConnection
Dim value As String

value = instance.FolderUrl

instance.FolderUrl = value

Property value

Type: System.String
The URL of the folder to which the form will be submitted.

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 InfoPath Filler or in a Web browser.

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.

   Dim submitConnection As FileSubmitConnection = 
      DirectCast(DataConnections["SharePoint Library"], _
   submitConnection.FolderUrl = submitConnection.FolderUrl & "data\"
© 2016 Microsoft