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; }
參數
id
Type: System.Guid識別網站的 GUID。
Property value
Type: Microsoft.SharePoint.SPWeb
SPWeb object,表示項目。