SPDataStore.DoesUserHavePermissions Method
Checks whether the current user has the specified permission to an object.
This API is not CLS-compliant.
Namespace: Microsoft.PerformancePoint.Scorecards.Store
Assembly: Microsoft.PerformancePoint.Scorecards.Store (in Microsoft.PerformancePoint.Scorecards.Store.dll)
Syntax
'Declaration
<CLSCompliantAttribute(False)> _
Public Function DoesUserHavePermissions ( _
spObjectTypeId As String, _
location As RepositoryLocation, _
permissions As SPBasePermissions _
) As Boolean
'Usage
Dim instance As SPDataStore
Dim spObjectTypeId As String
Dim location As RepositoryLocation
Dim permissions As SPBasePermissions
Dim returnValue As Boolean
returnValue = instance.DoesUserHavePermissions(spObjectTypeId, _
location, permissions)
[CLSCompliantAttribute(false)]
public bool DoesUserHavePermissions(
string spObjectTypeId,
RepositoryLocation location,
SPBasePermissions permissions
)
Parameters
spObjectTypeId
Type: System.StringThe type of object being accessed: SPDashboard, SPDataSource, SPFilter, SPIndicator, SPKpi, SPReportView, or SPScorecard.
location
Type: Microsoft.PerformancePoint.Scorecards.RepositoryLocationThe location of the object in the repository.
permissions
Type: Microsoft.SharePoint.SPBasePermissionsThe built-in permissions available in SharePoint Foundation to check for.
Return Value
Type: System.Boolean
true if the current user has the specified permissions; otherwise, false.
Remarks
PerformancePoint Services in Microsoft SharePoint Server 2010 uses SharePoint document libraries and lists as its repository. It stores data sources in document libraries, and it stores other first class objects (dashboards, filters, indicators, KPIs, reports, and scorecards) in lists.