SPGroupCollection.Item property (Int32)
取得集合中指定之索引處的群組物件。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public ReadOnly Default Property Item ( _
index As Integer _
) As SPGroup
Get
'用途
Dim instance As SPGroupCollection
Dim index As Integer
Dim value As SPGroup
value = instance(index)
public SPGroup this[
int index
] { get; }
參數
index
Type: System.Int32指定的索引為 32 位元整數。
Property value
Type: Microsoft.SharePoint.SPGroup
SPGroup 物件,表示群組。
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | 如果指定的索引超出索引集合的有效範圍,便會擲回。 |
備註
在 C# 中,這個屬性會是SPGroupCollection類別的索引子。