共用方式為


SPWebTemplateCollection.Item property (String)

從集合中取得的站台定義組態或具有指定名稱的網站範本物件。

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

Syntax

'宣告
Public ReadOnly Default Property Item ( _
    strKey As String _
) As SPWebTemplate
    Get
'用途
Dim instance As SPWebTemplateCollection
Dim strKey As String
Dim value As SPWebTemplate

value = instance(strKey)
public SPWebTemplate this[
    string strKey
] { get; }

參數

Property value

Type: Microsoft.SharePoint.SPWebTemplate
Microsoft.SharePoint.SPWebTemplate 物件,表示網站定義設定] 或 [網站範本。

備註

Item屬性是SPWebTemplateCollection類別索引子。

請參閱

參照

SPWebTemplateCollection class

SPWebTemplateCollection members

Item overload

Microsoft.SharePoint namespace