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