Share via


SPClaimProvider.GetClaimsForEntity method (Uri, SPClaim)

Gets the claims to be augmented 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 _
) As SPClaim()
'Usage
Dim instance As SPClaimProvider
Dim context As Uri
Dim entity As SPClaim
Dim returnValue As SPClaim()

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

Parameters

  • context
    Type: System.Uri

    The context, as a URI. This must be a properly formatted URI.

Return value

Type: []
A set of SPClaim objects. The ClaimType property values must be found in the result of ClaimType(). The ValueType property value must be found in the result of ClaimValueTypes.

Exceptions

Exception Condition
ArgumentNullException

Thrown when context or entity is a null reference (Nothing in Visual Basic).

NotImplementedException

Thrown when SupportsEntityInformation is false.

See also

Reference

SPClaimProvider class

SPClaimProvider members

GetClaimsForEntity overload

Microsoft.SharePoint.Administration.Claims namespace