SharepointListQueryConnection.SiteUrl Property

NOTE: This API is now obsolete.

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
<ObsoleteAttribute("The SharePointListQueryConnection class has been deprecated. Use SharePointListRWQueryConnection instead.")> _
Public MustOverride ReadOnly Property SiteUrl As Uri
    Get
'Usage
Dim instance As SharepointListQueryConnection
Dim value As Uri

value = instance.SiteUrl
[ObsoleteAttribute("The SharePointListQueryConnection class has been deprecated. Use SharePointListRWQueryConnection instead.")]
public abstract Uri SiteUrl { get; }

Property Value

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

Examples

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