Edit

Share via


SharepointListQueryConnection.SiteUrl Property

Definition

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

public:
 abstract property Uri ^ SiteUrl { Uri ^ get(); };
public abstract Uri SiteUrl { get; }
member this.SiteUrl : Uri
Public MustOverride ReadOnly Property SiteUrl As Uri

Property Value

Uri

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

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()

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.

Applies to