UserCollection.GetById 方法
返回向用户指定的成员 id。
命名空间: 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 User
用法
Dim instance As UserCollection
Dim id As Integer
Dim returnValue As User
returnValue = instance.GetById(id)
public User GetById(
int id
)
参数
id
类型:System.Int32指定成员标识符 32 位整数。
返回值
类型:Microsoft.SharePoint.Client.User
返回User实例,表示向用户指定的成员 id。
异常
异常 | 条件 |
---|---|
[Microsoft.SharePoint.SPException] | 找不到用户。错误代码 ︰-2146232832。 |
[System.UnauthorizedAccessException] | 当前用户没有足够的权限。错误代码 ︰ 为-2147024891。 |