Share via


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

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

SharepointListAdapter Interface

SharepointListAdapter Members

Microsoft.Office.Interop.InfoPath Namespace