GroupCollection.GetByName method
Returns a cross-site group from the collection based on the name of the group.
Namespace: Microsoft.SharePoint.Client
Assembly: Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)
Syntax
'Declaration
Public Function GetByName ( _
name As String _
) As Group
'Usage
Dim instance As GroupCollection
Dim name As String
Dim returnValue As Group
returnValue = instance.GetByName(name)
public Group GetByName(
string name
)
Parameters
name
Type: System.StringThe group name.
Return value
Type: Microsoft.SharePoint.Client.Group
SPGroup object that represents the group.
Remarks
The name parameter value corresponds to the group name for the cross-site group, which is contained in the Microsoft.SharePoint.SPMember class.