Condividi tramite


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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

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

value = instance.Item(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