共用方式為


SPClaimProviderManager.GetClaimProvider Method

Retrieves a SPClaimProvider by name.

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

Syntax

'Declaration
Public Function GetClaimProvider ( _
    name As String _
) As SPClaimProviderDefinition
'Usage
Dim instance As SPClaimProviderManager
Dim name As String
Dim returnValue As SPClaimProviderDefinition

returnValue = instance.GetClaimProvider(name)
public SPClaimProviderDefinition GetClaimProvider(
    string name
)

Parameters

Return Value

Type: Microsoft.SharePoint.Administration.Claims.SPClaimProviderDefinition
A SPClaimProviderDefinition object if a match is found. Returns a null reference (Nothing in Visual Basic) if no match is found.

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