CertificateQuery.EnhancedKeyUsages 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得物件識別碼的集合 (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)
屬性值
物件識別碼的集合 (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);
});