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
newProvider
Type: Microsoft.SharePoint.Administration.Claims.SPTrustedLoginProviderThe provider to add.
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