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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
Public ReadOnly Property Item ( _
name As String _
) As SPWeb
Get
'Usage
Dim instance As SPWebCollection
Dim name As String
Dim value As SPWeb
value = instance.Item(name)
public SPWeb this[
string name
] { get; }
Parameters
name
Type: System.StringA string that contains the site-relative URL.
Property Value
Type: Microsoft.SharePoint.SPWeb
An SPWeb object that represents the website.
Remarks
In C#, this property is an indexer for the SPWebCollection class.