SPIisSettings.AddClaimsAuthenticationProvider Method
Adds a claims authentication provider to support on the current URL zone.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Sub AddClaimsAuthenticationProvider ( _
provider As SPAuthenticationProvider _
)
'Usage
Dim instance As SPIisSettings
Dim provider As SPAuthenticationProvider
instance.AddClaimsAuthenticationProvider(provider)
public void AddClaimsAuthenticationProvider(
SPAuthenticationProvider provider
)
Parameters
provider
Type: Microsoft.SharePoint.Administration.SPAuthenticationProviderThe claims authentication provider to be added.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | provider is null . |
ArgumentException | ClaimsAuthenticationProviders is null or already contains provider. |
Remarks
This method adds the specified claims authentication provider into the list of claims authentication providers configured for the current URL zone.