Edit

Share via


FileSubmitConnection.FolderUrl Property

Definition

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

public:
 abstract property System::String ^ FolderUrl { System::String ^ get(); void set(System::String ^ value); };
public abstract string FolderUrl { get; set; }
member this.FolderUrl : string with get, set
Public MustOverride Property FolderUrl As String

Property Value

The URL of the folder to which the form will be submitted.

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\"

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.

Applies to