SPSite.ServerRelativeUrl property
網站集合中取得根 Web 站台的伺服器相對 URL。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public ReadOnly Property ServerRelativeUrl As String
Get
'用途
Dim instance As SPSite
Dim value As String
value = instance.ServerRelativeUrl
public string ServerRelativeUrl { get; }
Property value
Type: System.String
字串,包含 URL。
備註
ServerRelativeUrl屬性包含正斜線 ("/")。