Compartilhar 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)
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

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