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.
Replaces the current set of claims authentication providers with the specified set of claims authentication providers.
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Sub ReplaceClaimsAuthenticationProviders ( _
providers As IEnumerable(Of SPAuthenticationProvider) _
)
'Usage
Dim instance As SPIisSettings
Dim providers As IEnumerable(Of SPAuthenticationProvider)
instance.ReplaceClaimsAuthenticationProviders(providers)
public void ReplaceClaimsAuthenticationProviders(
IEnumerable<SPAuthenticationProvider> providers
)
Parameters
providers
Type: System.Collections.Generic.IEnumerable<SPAuthenticationProvider>The set of claims authentication providers.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | providers is null . |
| ArgumentException | providers is empty. |
Remarks
This method replaces the current set of claims authentication providers with a new set of claims authentication providers for the current URL zone.