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
claimType
Type: System.StringThe claim type to validate.
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.