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.UriSpecifies the the context of the operation.
entity
Type: Microsoft.SharePoint.Administration.Claims.SPClaimA single SPClaim identifying the entity we are requesting claims for.
claimProviderContext
Type: Microsoft.SharePoint.Administration.Claims.SPClaimProviderContextProvides extra information to the claim providers for augmentation matters.
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. |