共用方式為


SPClaimProviderManager.DoesClaimProviderExist Method

Verifies that a SPClaimProvider claim provider with the name parameter exists.

Namespace:  Microsoft.SharePoint.Administration.Claims
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Function DoesClaimProviderExist ( _
    name As String _
) As Boolean
'Usage
Dim instance As SPClaimProviderManager
Dim name As String
Dim returnValue As Boolean

returnValue = instance.DoesClaimProviderExist(name)
public bool DoesClaimProviderExist(
    string name
)

Parameters

Return Value

Type: System.Boolean
true if there exists a SPClaimProvider with a name property that matches the input parameter; otherwise false.

Exceptions

Exception Condition
ArgumentNullException

Thrown if the name parameter is a null reference (Nothing in Visual Basic).

See Also

Reference

SPClaimProviderManager Class

SPClaimProviderManager Members

Microsoft.SharePoint.Administration.Claims Namespace