Share 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