Compartilhar via


SPClaimTypes.IsValid Method

Determines whether a claim type is valid.

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

Syntax

'Declaration
Public Shared Function IsValid ( _
    claimType As String _
) As Boolean
'Usage
Dim claimType As String
Dim returnValue As Boolean

returnValue = SPClaimTypes.IsValid(claimType)
public static bool IsValid(
    string claimType
)

Parameters

Return Value

Type: System.Boolean
true if the claim type is valid; otherwise, false.

Exceptions

Exception Condition
ArgumentNullException()

claimType is null .

Remarks

A claim type is valid if it is in the format of string1/string2.

See Also

Reference

SPClaimTypes Class

SPClaimTypes Members

Microsoft.SharePoint.Administration.Claims Namespace