CertificateQuery.EnhancedKeyUsages CertificateQuery.EnhancedKeyUsages CertificateQuery.EnhancedKeyUsages CertificateQuery.EnhancedKeyUsages CertificateQuery.EnhancedKeyUsages Property

Definition

Gets a collection of object identifiers (OIDs) for the enhanced key usage extension to search for.

public : IVector<Platform::String> EnhancedKeyUsages { get; }
IVector<winrt::hstring> EnhancedKeyUsages();
public IList<string> EnhancedKeyUsages { get; }
Public ReadOnly Property EnhancedKeyUsages As IList<string>
var iList = certificateQuery.enhancedKeyUsages;

Property Value

IList<string> IList<string> IList<string>

A collection of object identifiers (OIDs) for the enhanced key usage extension to search for.

Examples

var query = new Windows.Security.Cryptography.Certificates.CertificateQuery();
query.issuerName = "Consoto Bank Issuing CA";
var enhancedKeyUsages = query.enhancedKeyUsages;
enhancedKeyUsage[0] = "1.3.6.1.5.5.7.3.2"; // client auth
var certificates;
Windows.Security.Cryptography.Certificates.
    CertificateStores.findAllAsync(query).done(function(queriedCertificates)
{
    certificates = queriedCertificates;
}, 
function(e) 
{
    WinJS.log("FindAllAsync failed, error:" + e.number + e.message);
});