共用方式為


SPWebPartCollection.ServerRelativeUrl property

NOTE: This API is now obsolete.

已過時。取得集合中的伺服器相對 URL。

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

Syntax

'宣告
<ObsoleteAttribute("Use SPLimitedWebPartManager instead.")> _
Public ReadOnly Property ServerRelativeUrl As String
    Get
'用途
Dim instance As SPWebPartCollection
Dim value As String

value = instance.ServerRelativeUrl
[ObsoleteAttribute("Use SPLimitedWebPartManager instead.")]
public string ServerRelativeUrl { get; }

Property value

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

請參閱

參照

SPWebPartCollection class

SPWebPartCollection members

Microsoft.SharePoint namespace