Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Determines whether the issuer is of a particular type.
Namespace: Microsoft.SharePoint.Administration.Claims
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Shared Function IsIssuerType ( _
type As SPOriginalIssuerType, _
issuer As String _
) As Boolean
'Usage
Dim type As SPOriginalIssuerType
Dim issuer As String
Dim returnValue As Boolean
returnValue = SPOriginalIssuers.IsIssuerType(type, _
issuer)
public static bool IsIssuerType(
SPOriginalIssuerType type,
string issuer
)
Parameters
type
Type: Microsoft.SharePoint.Administration.Claims.SPOriginalIssuerTypeThe SPOriginalIssuerType of issuer to check for.
issuer
Type: System.StringA string that contains the issuer to validate the type for.
Return value
Type: System.Boolean
true if the issuer is of the type defined by the type parameter; otherwise, false.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | Thrown if the issuer is null when the type requires an identifier. Also throws an ArgumentException if the issuer is String.Empty when the type requires an identifier. |