SPTrustedProviderCollection<T>.Add Method
Adds a trusted provider to the collection
Namespace: Microsoft.SharePoint.Administration.Claims
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Overrides Function Add ( _
newObj As T _
) As T
'Usage
Dim instance As SPTrustedProviderCollection
Dim newObj As T
Dim returnValue As T
returnValue = instance.Add(newObj)
public override T Add(
T newObj
)
Parameters
newObj
Type: TThe trusted provider to add to the collection.
Return Value
Type: T
The trusted provider that was added.
Exceptions
Exception | Condition |
---|---|
ArgumentException | newObj already exists in the collection or the name of the trusted provider is greater than 50 characters. |
Remarks
This method adds a trusted provider to the collection and returns the trusted provider that was added.
See Also
Reference
SPTrustedProviderCollection<T> Class