SharePointListRWQueryConnection.SiteUrl Property
Gets or sets a Uri object that represents the URL of the SharePoint Foundation site associated with the SharepointListRWQueryConnection object.
Namespace: Microsoft.Office.InfoPath
Assembly: Microsoft.Office.InfoPath (in Microsoft.Office.InfoPath.dll)
Syntax
'Declaration
Public MustOverride Property SiteUrl As Uri
Get
Set
'Usage
Dim instance As SharePointListRWQueryConnection
Dim value As Uri
value = instance.SiteUrl
instance.SiteUrl = value
public abstract Uri SiteUrl { get; set; }
Property Value
Type: System.Uri
An object that represents the URL of the SharePoint Foundation site.
Remarks
The Uri object returned by the SiteUrl property provides a variety of properties and methods that can be used to get 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 code example sets a string variable to the value returned by the SiteUrl property.
SharePointListRWQueryConnection spConnection = (SharePointListRWQueryConnection)this.DataConnections["Contacts"];
string spSiteURL = spConnection.SiteUrl.ToString();
Dim spConnection As SharePointListRWQueryConnection = _
DirectCast(Me.DataConnections("Contacts"), _
SharePointListRWQueryConnection)
Dim spSiteURL As String = _
spConnection.SiteUrl.ToString()
See Also
Reference
SharePointListRWQueryConnection Class