Condividi tramite


SPGroupCollection.Remove Method (Int32)

Removes the group at the specified index in the collection.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public Sub Remove ( _
    index As Integer _
)
'Usage
Dim instance As SPGroupCollection
Dim index As Integer

instance.Remove(index)
public void Remove(
    int index
)

Parameters

  • index
    Type: System.Int32

    A 32-bit integer that specifies the index of the group to be removed.

Exceptions

Exception Condition
SPException

The group collection is read-only.

See Also

Reference

SPGroupCollection Class

SPGroupCollection Members

Remove Overload

Microsoft.SharePoint Namespace