Share via


SPTrustedClaimTypeInformation.AddKnownClaimValue method

Adds the specified claim value to the known claim value collection represented by the KnownClaimValues property.

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

Syntax

'Declaration
Public Sub AddKnownClaimValue ( _
    value As String _
)
'Usage
Dim instance As SPTrustedClaimTypeInformation
Dim value As String

instance.AddKnownClaimValue(value)
public void AddKnownClaimValue(
    string value
)

Parameters

  • value
    Type: System.String

    The claim value to be added to the known claim value collection.

Exceptions

Exception Condition
ArgumentException

IsIdentityClaim is true, value is an empty string, or value is already in the claim value collection.

ArgumentNullException

value is null .

Remarks

Call the IsKnownClaimValue(String) method first to ensure that the claim value is not already in the collection.

See also

Reference

SPTrustedClaimTypeInformation class

SPTrustedClaimTypeInformation members

Microsoft.SharePoint.Administration.Claims namespace