Share via


SPTrustedLoginProviderCollection.Add method

Adds the specified access provider to the collection.

Namespace:  Microsoft.SharePoint.Administration.Claims
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Overrides Function Add ( _
    newProvider As SPTrustedLoginProvider _
) As SPTrustedLoginProvider
'Usage
Dim instance As SPTrustedLoginProviderCollection
Dim newProvider As SPTrustedLoginProvider
Dim returnValue As SPTrustedLoginProvider

returnValue = instance.Add(newProvider)
public override SPTrustedLoginProvider Add(
    SPTrustedLoginProvider newProvider
)

Parameters

Return value

Type: Microsoft.SharePoint.Administration.Claims.SPTrustedLoginProvider
The provider that was added.

Exceptions

Exception Condition
ArgumentNullException

newProvider is null .

ArgumentException

The login provider to add is in use.

Remarks

This method calls the base class Add method to add the access provider to the collection.

See also

Reference

SPTrustedLoginProviderCollection class

SPTrustedLoginProviderCollection members

Microsoft.SharePoint.Administration.Claims namespace