SPTrustedProviderCollection<T>.GetProviderBySigningCertificate method (X509Certificate2)

Retrieves the provider with the specified signing certificate from the collection.

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

Syntax

'Declaration
Public Function GetProviderBySigningCertificate ( _
    certificate As X509Certificate2 _
) As T
'Usage
Dim instance As SPTrustedProviderCollection
Dim certificate As X509Certificate2
Dim returnValue As T

returnValue = instance.GetProviderBySigningCertificate(certificate)
public T GetProviderBySigningCertificate(
    X509Certificate2 certificate
)

Parameters

Return value

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

Remarks

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

This method returns null if it cannot find a provider with the certificate or certificate is null .

See also

Reference

SPTrustedProviderCollection<T> class

SPTrustedProviderCollection<T> members

GetProviderBySigningCertificate overload

Microsoft.SharePoint.Administration.Claims namespace