共用方式為


SPWeb.ServerRelativeUrl property

取得或設定網站的伺服器相對 URL。

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Public Property ServerRelativeUrl As String
    Get
    Set
'用途
Dim instance As SPWeb
Dim value As String

value = instance.ServerRelativeUrl

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

Property value

Type: System.String
字串,包含伺服器相對 URL。

請參閱

參照

SPWeb class

SPWeb members

Microsoft.SharePoint namespace