SharepointListAdapter.SiteUrl Property
Gets the Uniform Resource Locator (URL) of the Windows SharePoint Services site that the SharepointListAdapterObject object will query.
Namespace: Microsoft.Office.Interop.InfoPath.SemiTrust
Assembly: Microsoft.Office.Interop.InfoPath.SemiTrust (in Microsoft.Office.Interop.InfoPath.SemiTrust.dll)
Syntax
'Declaration
ReadOnly Property SiteUrl As String
Get
'Usage
Dim instance As SharepointListAdapter
Dim value As String
value = instance.SiteUrl
string SiteUrl { get; }
Property Value
Type: System.String
Remarks
Important
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.
Examples
In the following example, the SiteUrl property of an existing Data Connection to a SharePoint list, "SharePoint list", is displayed in a message box:
SharepointListAdapter SPList = ((SharepointListAdapter)thisXDocument.DataAdapters[“SharePoint list”]);
thisXDocument.UI.Alert(SPList.SiteUrl);