Compartilhar via


SPClaimProvider.FillClaimValueTypes Method

When implemented in a derived class, specifies the set of possible claim value type for claim type that the claims provider supports.

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

Syntax

'Declaration
Protected MustOverride Sub FillClaimValueTypes ( _
    claimValueTypes As List(Of String) _
)
'Usage
Dim claimValueTypes As List(Of String)

Me.FillClaimValueTypes(claimValueTypes)
protected abstract void FillClaimValueTypes(
    List<string> claimValueTypes
)

Parameters

Remarks

This method fills the claim value types that will be placed into the SAML token. This is also known as claims augmentation. In claims augmentation, a claims provider augments a user token with claims during sign-in. Claims augmentation allows an application to augment additional claims into the user's token. 

You need to return the claim value types in the same order as the claim types in the FillClaimTypes method.

If you want to implement claim picking in the People Picker control, you must implement this method. In addition, you must also implement FillSchema(), FillClaimTypes(), and FillEntityTypes() methods in the SPClaimProvider class.

For more information about claims picking, see How to: Create a Claims Provider and Claims Provider.

Sample code provided by: Andy Li, Microsoft Corporation.

Examples

protected override void  ClaimValueTypes(List<string> claimValueTypes)
{
    if (null == claimValueTypes)
    {
        throw new ArgumentNullException("claimValueTypes");
    }
  claimValueTypes.Add(Microsoft.IdentityModel.Claims.ClaimValueTypes.String);
}

See Also

Reference

SPClaimProvider Class

SPClaimProvider Members

Microsoft.SharePoint.Administration.Claims Namespace