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.
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.StringThe 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