Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the element with the specified GUID from the collection. In C#, this property is an indexer for the SPWebCollection class.
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 ( _
id As Guid _
) As SPWeb
Get
'Usage
Dim instance As SPWebCollection
Dim id As Guid
Dim value As SPWeb
value = instance.Item(id)
public SPWeb this[
Guid id
] { get; }
Parameters
id
Type: System.GuidA GUID that identifies the website.
Property Value
Type: Microsoft.SharePoint.SPWeb
An SPWeb object that represents the element.