Web.GetUserEffectivePermissions 方法

Gets the effective permissions that the specified user has within the current application scope.

命名空间:  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 GetUserEffectivePermissions ( _
    userName As String _
) As ClientResult(Of BasePermissions)
用法
Dim instance As Web
Dim userName As String
Dim returnValue As ClientResult(Of BasePermissions)

returnValue = instance.GetUserEffectivePermissions(userName)
public ClientResult<BasePermissions> GetUserEffectivePermissions(
    string userName
)

参数

  • userName
    类型:System.String

    The user associated with the returned permissions.

返回值

类型:Microsoft.SharePoint.Client.ClientResult<BasePermissions>
The permissions of the given user.

备注

It must not be 空引用(无 在 Visual Basic 中).

另请参阅

引用

Web 类

Web 成员

Microsoft.SharePoint.Client 命名空间