Share via


SPClaimProvider.GetClaimsForEntity method (Uri, SPClaim, SPClaimProviderContext)

Get the SPClaim for the entity.

Namespace:  Microsoft.SharePoint.Administration.Claims
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Function GetClaimsForEntity ( _
    context As Uri, _
    entity As SPClaim, _
    claimProviderContext As SPClaimProviderContext _
) As SPClaim()
'Usage
Dim instance As SPClaimProvider
Dim context As Uri
Dim entity As SPClaim
Dim claimProviderContext As SPClaimProviderContext
Dim returnValue As SPClaim()

returnValue = instance.GetClaimsForEntity(context, _
    entity, claimProviderContext)
public SPClaim[] GetClaimsForEntity(
    Uri context,
    SPClaim entity,
    SPClaimProviderContext claimProviderContext
)

Parameters

  • context
    Type: System.Uri

    Specifies the the context of the operation.

Return value

Type: []
A set of SPClaim objects. The [!:SPClaim.Type] property values MUST be found in the result of ClaimTypes(). The ValueType property values MUST be found in the result of [!:ClaimValueType].

Exceptions

Exception Condition
NotImplementedException

If SupportsEntityInformation is false.

ArgumentNullException

If context or entity is null.

See also

Reference

SPClaimProvider class

SPClaimProvider members

GetClaimsForEntity overload

Microsoft.SharePoint.Administration.Claims namespace