共用方式為


SharepointListAdapter2.SiteUrl 屬性

取得 SharepointListAdapterObject 物件將會查詢的 Windows SharePoint Services 網站的「統一資源定位器」(URL)。

**命名空間:**Microsoft.Office.Interop.InfoPath
**組件:**Microsoft.Office.Interop.InfoPath (於 microsoft.office.interop.infopath.dll 中)

語法

'宣告
<DispIdAttribute(5)> _
ReadOnly Property SiteUrl As String
'用途
Dim instance As SharepointListAdapter2
Dim value As String

value = instance.SiteUrl
[DispIdAttribute(5)] 
string SiteUrl { get; }

屬性值

SharepointListAdapterObject 物件會查詢的 Windows SharePoint Services 網站的「統一資源定位器」(URL)。

範例

在下列範例中,SharePoint 清單之現有 [資料連線] 的 SiteUrl 屬性 ("SharePoint list") 會顯示在訊息方塊中:

SharepointListAdapter SPList = ((SharepointListAdapter)thisXDocument.DataAdapters[“SharePoint list”]);
thisXDocument.UI.Alert(SPList.SiteUrl);

請參閱

參考

SharepointListAdapter2 介面
SharepointListAdapter2 成員
Microsoft.Office.Interop.InfoPath 命名空間