次の方法で共有


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)

Syntax

'Declaration
Public ReadOnly Default Property Item ( _
    id As Guid _
) As SPWeb
    Get
'Usage
Dim instance As SPWebCollection
Dim id As Guid
Dim value As SPWeb

value = instance(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