ISPItemDao.DoesUserHavePermissions Method
Determines whether the current user has the specified permissions to the specified object.
Namespace: Microsoft.PerformancePoint.Scorecards
Assembly: Microsoft.PerformancePoint.Scorecards.Client (in Microsoft.PerformancePoint.Scorecards.Client.dll)
Syntax
'Declaration
Function DoesUserHavePermissions ( _
cache As ISPFcoCache, _
webSiteID As Guid, _
location As RepositoryLocation, _
permissions As SPBasePermissions _
) As Boolean
'Usage
Dim instance As ISPItemDao
Dim cache As ISPFcoCache
Dim webSiteID As Guid
Dim location As RepositoryLocation
Dim permissions As SPBasePermissions
Dim returnValue As Boolean
returnValue = instance.DoesUserHavePermissions(cache, _
webSiteID, location, permissions)
bool DoesUserHavePermissions(
ISPFcoCache cache,
Guid webSiteID,
RepositoryLocation location,
SPBasePermissions permissions
)
Parameters
cache
Type: Microsoft.PerformancePoint.Scorecards.ISPFcoCacheThe cache-management interface.
webSiteID
Type: System.GuidThe identifier of the site collection.
location
Type: Microsoft.PerformancePoint.Scorecards.RepositoryLocationThe location of the object in the repository.
permissions
Type: Microsoft.SharePoint.SPBasePermissionsThe set of permissions to check for.
Return Value
Type: System.Boolean
true if the current user has the specified permissions; otherwise false.