Share via


SharepointListQueryConnection.SiteUrl Property

Gets a System.Uri object that represents the Uniform Resource Locator (URL) of the Windows SharePoint Services site associated with the SharepointListQueryConnection object.

Namespace: Microsoft.Office.InfoPath
Assembly: Microsoft.Office.InfoPath (in microsoft.office.infopath.dll)

Syntax

'Declaration
'Usage

Property Value

A System.Uri object that represents the Uniform Resource Locator (URL) of the Windows SharePoint Services site associated with the SharepointListQueryConnection object.

Remarks

The System.Uri object returned by the SiteUrl property provides a variety of properties and methods that can be used to provide information about the URL of the SharePoint site.

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 sets a string variable to the value returned by the SiteUrl property.

string spSiteURL = spConnection.SiteUrl.ToString();
Dim spSiteURL As String input = _
   string spSiteURL = spConnection.SiteUrl.ToString()

See Also

Reference

SharepointListQueryConnection Class
SharepointListQueryConnection Members
Microsoft.Office.InfoPath Namespace