Share via


SPGroupCollection.Item property (String)

Gets the group object that has the specified name from the collection.

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

Syntax

'Declaration
Public ReadOnly Default Property Item ( _
    name As String _
) As SPGroup
    Get
'Usage
Dim instance As SPGroupCollection
Dim name As String
Dim value As SPGroup

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

Parameters

  • name
    Type: System.String

    A string that represents the group name.

Property value

Type: Microsoft.SharePoint.SPGroup
An SPGroup object that represents the group.

Remarks

In C#, this property is an indexer for the SPGroupCollection class.

See also

Reference

SPGroupCollection class

SPGroupCollection members

Item overload

Microsoft.SharePoint namespace