Partager via


MessageCertificateX509File.Find Method (StoreLocation, String, X509FindType, String, Boolean)

 

Attempts to find a certificate and assign the property information to select the matching certificate. If there are multiple matches, only the first match will be returned.

Namespace:   Microsoft.ConfigurationManagement.Messaging.Framework
Assembly:  Microsoft.ConfigurationManagement.Messaging (in Microsoft.ConfigurationManagement.Messaging.dll)

Syntax

public static MessageCertificateX509File Find(
    StoreLocation storeLocation,
    string storeName,
    X509FindType findType,
    string findByValue,
    bool onlyReturnClientAuthCertificates
)
public:
static MessageCertificateX509File^ Find(
    StoreLocation storeLocation,
    String^ storeName,
    X509FindType findType,
    String^ findByValue,
    bool onlyReturnClientAuthCertificates
)
Public Shared Function Find (
    storeLocation As StoreLocation,
    storeName As String,
    findType As X509FindType,
    findByValue As String,
    onlyReturnClientAuthCertificates As Boolean
) As MessageCertificateX509File

Parameters

  • onlyReturnClientAuthCertificates
    Type: System.Boolean

    If true, only client authentication certificates will be queried.

Return Value

Type: Microsoft.ConfigurationManagement.Messaging.Framework.MessageCertificateX509File

See Also

Find Overload
MessageCertificateX509File Class
Microsoft.ConfigurationManagement.Messaging.Framework Namespace

Return to top