SharePointListRWQueryConnection.SiteUrl 属性

定义

获取或设置一个 Uri 对象,该对象表示与 Microsoft.Office.InfoPath.SharepointListRWQueryConnection 对象关联的 SharePoint Foundation 网站的 URL。

public:
 abstract property Uri ^ SiteUrl { Uri ^ get(); void set(Uri ^ value); };
public abstract Uri SiteUrl { get; set; }
member this.SiteUrl : Uri with get, set
Public MustOverride Property SiteUrl As Uri

属性值

Uri

一个 对象,表示 SharePoint Foundation 网站的 URL。

示例

下面的代码示例将字符串变量设置为 属性 SiteUrl 返回的值。

SharePointListRWQueryConnection spConnection = (SharePointListRWQueryConnection)this.DataConnections["Contacts"];
string spSiteURL = spConnection.SiteUrl.ToString();
Dim spConnection As SharePointListRWQueryConnection = _
   DirectCast(Me.DataConnections("Contacts"), _
   SharePointListRWQueryConnection)
Dim spSiteURL As String = _
   spConnection.SiteUrl.ToString()

注解

属性 Uri 返回 SiteUrl 的对象提供了各种属性和方法,这些属性和方法可用于获取有关 SharePoint 网站的 URL 的信息。

此成员只能由与当前打开的表单在相同域中运行的表单访问,或者由已授予跨域权限的表单访问。

可以通过 Microsoft InfoPath Filler 或 Web 浏览器内打开的表单中运行的代码访问此类型或成员。

适用于