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)
Available in Sandboxed Solutions: No

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