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
name
Type: System.StringThe name to match against a Name property.
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). |