Share via


SharepointListAdapter2.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
Assembly:  Microsoft.Office.Interop.InfoPath (in Microsoft.Office.Interop.InfoPath.dll)

Syntax

'Declaration
ReadOnly Property SiteUrl As String
    Get
'Usage
Dim instance As SharepointListAdapter2
Dim value As String

value = instance.SiteUrl
string SiteUrl { get; }

Property value

Type: System.String
The Uniform Resource Locator (URL) of the Windows SharePoint Services site that the SharepointListAdapterObject object will query.

Implements

SharepointListAdapter.SiteUrl

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

See also

Reference

SharepointListAdapter2 interface

SharepointListAdapter2 members

SiteUrl overload

Microsoft.Office.Interop.InfoPath namespace