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
Public MustOverride Property FolderUrl As String
    Get
    Set
'Usage
Dim instance As FileSubmitConnection
Dim value As String

value = instance.FolderUrl

instance.FolderUrl = value
public abstract string FolderUrl { get; set; }

Property value

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

Examples

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