SPClaimTypes.IsValid-Methode
Bestimmt, ob ein Anspruchstyp gültig ist.
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
)
Parameter
claimType
Typ: System.StringDer Typ des Anspruchs um zu überprüfen.
Rückgabewert
Typ: System.Boolean
true Wenn der Anspruchstyp gültig ist; andernfalls false.
Ausnahmen
Ausnahme | Bedingung |
---|---|
ArgumentNullException() | claimType ist Null . |
Hinweise
Ein Anspruchstyp ist gültig, wenn es in das Format des string1/string2ist.