SPWebCollection.Item property (String)

Gets the element with the specified site-relative URL from the collection.

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

public SPWeb this[
	string name
] { get; }

Parameters

name
Type: System.String

A string that contains the site-relative URL.

Property value

Type: Microsoft.SharePoint.SPWeb
An SPWeb object that represents the website.

In C#, this property is an indexer for the SPWebCollection class.

Show: