SPTrustedClaimTypeInformation.SetClaimValueModification Method
Sets the modification action and argument to apply to the claim value.
Namespace: Microsoft.SharePoint.Administration.Claims
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Sub SetClaimValueModification ( _
action As SPMappingAction, _
argument As String _
)
'Usage
Dim instance As SPTrustedClaimTypeInformation
Dim action As SPMappingAction
Dim argument As String
instance.SetClaimValueModification(action, _
argument)
public void SetClaimValueModification(
SPMappingAction action,
string argument
)
Parameters
action
Type: Microsoft.SharePoint.Administration.Claims.SPMappingActionThe modification action to apply to the claim value.
argument
Type: System.StringThe argument to apply to the claim value.
Exceptions
Exception | Condition |
---|---|
ArgumentException | IsIdentityClaim is true, or argument is an empty string and action is not None. |
ArgumentNullException | argument is null and action is not None. |
Remarks
This method sets the action and arguments used to modify the claim.
If action is None, this method calls the DisableClaimValueModification() method to disable modifications to the claim value.
See Also
Reference
SPTrustedClaimTypeInformation Class