Freigeben über


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.String

    Der 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.

Siehe auch

Referenz

SPClaimTypes Klasse

SPClaimTypes-Member

Microsoft.SharePoint.Administration.Claims-Namespace