Share via


SPTrustedProviderCollection<T>.GetProviderByName Method

Retrieves the provider with the specified provider name from the collection.

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

Syntax

'Declaration
Public Function GetProviderByName ( _
    providerName As String _
) As T
'Usage
Dim instance As SPTrustedProviderCollection
Dim providerName As String
Dim returnValue As T

returnValue = instance.GetProviderByName(providerName)
public T GetProviderByName(
    string providerName
)

Parameters

  • providerName
    Type: System.String

    The name of the provider to retrieve from the collection.

Return Value

Type: T
The provider that is retrieved from the collection with providerName.

Remarks

This method retrieves the provider with the providerName from the collection.

This method returns null if it cannot find a provider with that name.

See Also

Reference

SPTrustedProviderCollection<T> Class

SPTrustedProviderCollection<T> Members

Microsoft.SharePoint.Administration.Claims Namespace