CertificateQuery.EnhancedKeyUsages 属性

定义

获取要搜索的增强密钥用法扩展 (OID) 对象标识符的集合。

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

属性值

IVector<String>

IList<String>

IVector<Platform::String>

IVector<winrt::hstring>

对象标识符的集合 (OID) 要搜索的增强型密钥用法扩展。

示例

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);
});

适用于