共用方式為


SPWebPartManager.ServerRelativeUrl property

取得目前的Web Parts page的伺服器相對 URL。

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

Syntax

'宣告
Public ReadOnly Property ServerRelativeUrl As String
    Get
'用途
Dim instance As SPWebPartManager
Dim value As String

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

Property value

Type: System.String
目前的Web Parts page相對的 URL。

請參閱

參照

SPWebPartManager class

SPWebPartManager members

Microsoft.SharePoint.WebPartPages namespace