共用方式為


SPClaimProviderManager.IsUserIdentifierClaim Method (String, String, String, String)

Tests to see if the claim represented by the inputs is a SharePoint identity claim.

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

Syntax

'Declaration
Public Shared Function IsUserIdentifierClaim ( _
    claimType As String, _
    claimValue As String, _
    claimValueType As String, _
    claimOriginalIssuer As String _
) As Boolean
'Usage
Dim claimType As String
Dim claimValue As String
Dim claimValueType As String
Dim claimOriginalIssuer As String
Dim returnValue As Boolean

returnValue = SPClaimProviderManager.IsUserIdentifierClaim(claimType, _
    claimValue, claimValueType, claimOriginalIssuer)
public static bool IsUserIdentifierClaim(
    string claimType,
    string claimValue,
    string claimValueType,
    string claimOriginalIssuer
)

Parameters

  • claimValueType
    Type: System.String

    The claim value type to check.

  • claimOriginalIssuer
    Type: System.String

    The original issuer of the claim to check.

Return Value

Type: System.Boolean
true if the claim is a SharePoint identity claim; otherwise false.

Exceptions

Exception Condition
ArgumentNullException

Thrown if any argument is null.

See Also

Reference

SPClaimProviderManager Class

SPClaimProviderManager Members

IsUserIdentifierClaim Overload

Microsoft.SharePoint.Administration.Claims Namespace