共用方式為


SPContext.ListItemServerRelativeUrl property

取得或設定目前 HTTP 內容的Microsoft SharePoint Foundation中的清單項目的伺服器相對的 URL。

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

Syntax

'宣告
Public Property ListItemServerRelativeUrl As String
    Get
    Set
'用途
Dim instance As SPContext
Dim value As String

value = instance.ListItemServerRelativeUrl

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

Property value

Type: System.String
字串,包含 URL。

請參閱

參照

SPContext class

SPContext members

Microsoft.SharePoint namespace