共用方式為


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

  • argument
    Type: System.String

    The 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

SPTrustedClaimTypeInformation Members

Microsoft.SharePoint.Administration.Claims Namespace