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.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 SharepointListAdapter2
Dim value As String

value = instance.SiteUrl
string SiteUrl { get; }

Property value

Type: System.String

Implements

SharepointListAdapter.SiteUrl

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

See also

Reference

SharepointListAdapter2 interface

SharepointListAdapter2 members

SiteUrl overload

Microsoft.Office.Interop.InfoPath.SemiTrust namespace