Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.UriThe context, as a URI. This must be a properly formatted URI.
entity
Type: Microsoft.SharePoint.Administration.Claims.SPClaimA single SPClaim claim identifying the entity the claims being requested for.
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. |