共用方式為


SPListItem.Url property

取得網站相對 URL 的項目。

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

Syntax

'宣告
Public ReadOnly Property Url As String
    Get
'用途
Dim instance As SPListItem
Dim value As String

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

Property value

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

備註

如果清單具有外部資料來源,則此屬性會傳回空字串。

請參閱

參照

SPListItem class

SPListItem members

Microsoft.SharePoint namespace