共用方式為


SPWebCollection.Item property (String)

會從集合取得具有指定的網站與相對 URL 的項目。

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

Syntax

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

value = instance(name)
public SPWeb this[
    string name
] { get; }

參數

Property value

Type: Microsoft.SharePoint.SPWeb
代表網站的SPWeb物件。

備註

在 C# 中,這個屬性會是SPWebCollection類別的索引器。

請參閱

參照

SPWebCollection class

SPWebCollection members

Item overload

Microsoft.SharePoint namespace