SPGroupCollection.GetByName 方法

Returns a cross-site group from the collection based on the name of the group.

命名空间:  Microsoft.SharePoint
程序集:  Microsoft.SharePoint(位于 Microsoft.SharePoint.dll 中)

语法

声明
Public Function GetByName ( _
    name As String _
) As SPGroup
用法
Dim instance As SPGroupCollection
Dim name As String
Dim returnValue As SPGroup

returnValue = instance.GetByName(name)
public SPGroup GetByName(
    string name
)

参数

返回值

类型:Microsoft.SharePoint.SPGroup
An SPGroup object that represents the group.

备注

The name parameter value corresponds to the group name for the cross-site group, which is contained in the Microsoft.SharePoint.SPMember class.

另请参阅

引用

SPGroupCollection 类

SPGroupCollection 成员

Microsoft.SharePoint 命名空间