SPWebEventProperties.ServerRelativeUrl 属性

获取表示 Web 站点的地址之前它被移动,或获取当前服务器的相对 URL,如果重命名 Web 站点, 的服务器-相对 URL。

命名空间:  Microsoft.SharePoint
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
Public ReadOnly Property ServerRelativeUrl As String
    Get
用法
Dim instance As SPWebEventProperties
Dim value As String

value = instance.ServerRelativeUrl
public string ServerRelativeUrl { get; }

属性值

类型:System.String
一个字符串,包含服务器-相对 URL 的 Web 站点。

备注

对于之前的事件,此值是父的 URL 网站。对于之后的事件,它是值的子网站。在根网站中,此值是空引用(无 在 Visual Basic 中)。

另请参阅

引用

SPWebEventProperties 类

SPWebEventProperties 成员

Microsoft.SharePoint 命名空间