Share via


SPIisSettings.ReplaceClaimsAuthenticationProviders method

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)

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

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.

See also

Reference

SPIisSettings class

SPIisSettings members

Microsoft.SharePoint.Administration namespace