SPWebTemplateCollection.Item property (Int32)
取得集合中指定之索引處的站台定義設定] 或 [網站範本物件。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public ReadOnly Default Property Item ( _
index As Integer _
) As SPWebTemplate
Get
'用途
Dim instance As SPWebTemplateCollection
Dim index As Integer
Dim value As SPWebTemplate
value = instance(index)
public SPWebTemplate this[
int index
] { get; }
參數
index
Type: System.Int32Int32會指定索引。
Property value
Type: Microsoft.SharePoint.SPWebTemplate
Microsoft.SharePoint.SPWebTemplate 物件,表示網站定義設定] 或 [網站範本。
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | index超出有效範圍的集合索引。 |