SPWebEventProperties.ServerRelativeUrl property
取得伺服器相對 URL,表示 Web 網站的位址,已移動,或取得目前的伺服器相對 URL,如果在重新命名網站之前。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public ReadOnly Property ServerRelativeUrl As String
Get
'用途
Dim instance As SPWebEventProperties
Dim value As String
value = instance.ServerRelativeUrl
public string ServerRelativeUrl { get; }
Property value
Type: System.String
字串,包含網站的伺服器相對的 URL。
備註
如之前的事件,這個值是父的 URL 網站 ;After 事件,對於子 web 的值。如果根網站中,這個值會是a null reference (Nothing in Visual Basic)。