共用方式為


SPWebCollection.Item property (Guid)

會從集合取得具有指定之 GUID 的項目。在 C# 中,這個屬性會是SPWebCollection類別的索引器。

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

Syntax

'宣告
Public ReadOnly Default Property Item ( _
    id As Guid _
) As SPWeb
    Get
'用途
Dim instance As SPWebCollection
Dim id As Guid
Dim value As SPWeb

value = instance(id)
public SPWeb this[
    Guid id
] { get; }

參數

Property value

Type: Microsoft.SharePoint.SPWeb
SPWeb object,表示項目。

請參閱

參照

SPWebCollection class

SPWebCollection members

Item overload

Microsoft.SharePoint namespace