Share via


SPWebCollection.Item Property (Guid)

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.Guid

    A GUID that identifies the website.

Property Value

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

See Also

Reference

SPWebCollection Class

SPWebCollection Members

Item Overload

Microsoft.SharePoint Namespace