다음을 통해 공유


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

See Also

Reference

SPDataStore Class

SPDataStore Members

Microsoft.PerformancePoint.Scorecards.Store Namespace