GroupCollection.GetById 方法
Returns a group from the collection based on the member ID of the group.
命名空间: Microsoft.SharePoint.Client
程序集: Microsoft.SharePoint.Client.Silverlight(位于 Microsoft.SharePoint.Client.Silverlight.dll 中); Microsoft.SharePoint.Client.Phone(位于 Microsoft.SharePoint.Client.Phone.dll 中) Microsoft.SharePoint.Client(位于 Microsoft.SharePoint.Client.dll 中)
语法
声明
Public Function GetById ( _
id As Integer _
) As Group
用法
Dim instance As GroupCollection
Dim id As Integer
Dim returnValue As Group
returnValue = instance.GetById(id)
public Group GetById(
int id
)
参数
id
类型:System.Int32A 32-bit integer that specifies the member ID.
返回值
类型:Microsoft.SharePoint.Client.Group
A Group object that represents the group.
异常
异常 | 条件 |
---|---|
SPException | The group cannot be found. Error Code: -2130575246. |
ArgumentException | An unknown or incorrect group collection type is to be initialized. Error Code: -2147024809. |
UnauthorizedAccessException | The current user has insufficient permissions. Error Code: -2147024891. |