SharepointListQueryConnection.SiteUrl 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取一个 System.Uri 对象,该对象表示与 对象关联的SharepointListQueryConnectionWindows SharePoint Services站点的统一资源定位符 (URL) 。
public:
abstract property Uri ^ SiteUrl { Uri ^ get(); };
public abstract Uri SiteUrl { get; }
member this.SiteUrl : Uri
Public MustOverride ReadOnly Property SiteUrl As Uri
属性值
一个 System.Uri 对象,表示与对象关联的SharepointListQueryConnectionWindows SharePoint Services站点的统一资源定位符 (URL) 。
示例
以下示例将字符串变量设置为 属性 SiteUrl 返回的值。
string spSiteURL = spConnection.SiteUrl.ToString();
Dim spSiteURL As String input = _
string spSiteURL = spConnection.SiteUrl.ToString()
注解
SiteUrl 属性返回的 System.Uri 对象提供了多种属性和方法,可用于提供有关 SharePoint 网站的 URL 的信息。
此成员只能由与当前打开的表单在相同域中运行的表单访问,或者由已授予跨域权限的表单访问。
可以通过 Microsoft InfoPath Filler 或 Web 浏览器内打开的表单中运行的代码访问此类型或成员。