Share via


SPWebPartCollection.ServerRelativeUrl property

NOTE: This API is now obsolete.

Obsolete. Gets the server-relative URL of the collection.

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

Syntax

'Declaration
<ObsoleteAttribute("Use SPLimitedWebPartManager instead.")> _
Public ReadOnly Property ServerRelativeUrl As String
    Get
'Usage
Dim instance As SPWebPartCollection
Dim value As String

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

Property value

Type: System.String
A string that contains the URL.

See also

Reference

SPWebPartCollection class

SPWebPartCollection members

Microsoft.SharePoint namespace