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.String

    The type of object being accessed: SPDashboard, SPDataSource, SPFilter, SPIndicator, SPKpi, SPReportView, or SPScorecard.

Return value

Type: System.Boolean
true if the current user has the specified permissions; otherwise, false.

Remarks

PerformancePoint Services in SharePoint Server 2013 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.

See also

Reference

SPDataStore class

SPDataStore members

Microsoft.PerformancePoint.Scorecards.Store namespace